├── DOC ├── _images │ ├── D4D low level driver structure.svg │ ├── D4D low level driver structure_only.svg │ ├── button1.png │ ├── button2.png │ ├── gauge1.PNG │ ├── gauge2.PNG │ ├── gauge3.PNG │ ├── gauge4.PNG │ ├── graph1.PNG │ ├── icon1.PNG │ ├── icon2.PNG │ ├── label1.PNG │ ├── label2.PNG │ ├── menu1.PNG │ ├── menu2.PNG │ ├── screen1.PNG │ ├── screen2.PNG │ ├── slider1.PNG │ ├── slider2.PNG │ ├── console1.png │ ├── eGUI_Logo.png │ ├── edit_box1.PNG │ ├── fsl_logo.gif │ ├── list_box1.PNG │ ├── picture1.PNG │ ├── text_box1.PNG │ ├── check_box1.png │ ├── check_box2.png │ ├── eGUI_Example.png │ ├── eGUI_History.PNG │ ├── group_box1.PNG │ ├── scroll_bar1.PNG │ ├── Standard_scren.png │ ├── converter_bmp.png │ ├── converter_fnt.png │ ├── converter_str.png │ ├── progress_bar1.PNG │ ├── radio_button1.png │ ├── CW_FileList_D4D.png │ ├── Compounded_screen.png │ ├── memory_placement.PNG │ ├── 01-new_driver_inCW.png │ ├── 02-no_editor_window.png │ ├── 04-rename_template.png │ ├── 03-open_driver_files.png │ ├── memory_placement_RAM.PNG │ ├── Low_Level_File_structure.png │ └── D4D_low_level_driver_structure.png ├── eGUI.dox ├── egui_description.dox ├── eGUI_ft.html └── Converter.dox ├── _Official_Demos ├── EGUI_D4D_Demo │ ├── TWR_K60D100M │ │ ├── BareMetal │ │ │ └── IAR │ │ │ │ ├── .gitignore │ │ │ │ ├── src │ │ │ │ ├── cpu │ │ │ │ │ ├── start.h │ │ │ │ │ ├── arch_delay.h │ │ │ │ │ ├── arch_delay.s │ │ │ │ │ ├── start.c │ │ │ │ │ ├── crt0.s │ │ │ │ │ └── dma_channels.h │ │ │ │ ├── iar.h │ │ │ │ ├── common │ │ │ │ │ ├── startup.h │ │ │ │ │ └── startup.c │ │ │ │ ├── drivers │ │ │ │ │ ├── wdog │ │ │ │ │ │ ├── wdog.h │ │ │ │ │ │ └── wdog.c │ │ │ │ │ ├── mcg │ │ │ │ │ │ └── mcg.h │ │ │ │ │ └── sim │ │ │ │ │ │ └── sim.c │ │ │ │ ├── isr.h │ │ │ │ ├── platforms │ │ │ │ │ └── k60_tower.h │ │ │ │ ├── d4dtch_resistive_cfg.h │ │ │ │ └── 512KB_Pflash.icf │ │ │ │ └── egui_twrk60.eww │ │ └── MQX │ │ │ └── IAR │ │ │ └── egui_twrk60.eww │ ├── common_source │ │ ├── fonts.c │ │ ├── pictures.h │ │ ├── fonts.h │ │ └── d4d_screen_log.h │ ├── _screen_shots │ │ ├── about_screen.bmp │ │ ├── entry_screen.bmp │ │ ├── main_screen.bmp │ │ ├── menu_screen.bmp │ │ ├── console_screen.bmp │ │ ├── main_screen_old.bmp │ │ ├── menu_screen_old.bmp │ │ ├── about_screen_old.bmp │ │ ├── entry_screen_old.bmp │ │ ├── entry_screen_old2.bmp │ │ ├── main_screen_old2.bmp │ │ └── console_screen_old.bmp │ ├── TWRLCD_MCF51JM128 │ │ └── BareMetal │ │ │ └── CW_6_3 │ │ │ ├── cmd │ │ │ ├── CFV1_BDM_P&E_Multilink_CyclonePro_Postload.cmd │ │ │ ├── CFV1_BDM_P&E_Multilink_CyclonePro_Preload.cmd │ │ │ ├── CFV1_BDM_P&E_Multilink_CyclonePro_Reset.cmd │ │ │ └── CFV1_BDM_P&E_Multilink_CyclonePro_Startup.cmd │ │ │ ├── Sources │ │ │ ├── startcf.c │ │ │ ├── derivative.h │ │ │ ├── exceptions.h │ │ │ ├── startcf.h │ │ │ ├── D4D_Configuration │ │ │ │ ├── d4dlcd_SSD1289_cfg.h │ │ │ │ └── d4dtch_resistive_cfg.h │ │ │ └── main.h │ │ │ ├── TWRLCD_MCF51JM128.mcp │ │ │ ├── prm │ │ │ └── Project.lcf │ │ │ └── CFV1_BDM_P&E_Multilink_CyclonePro.ini │ ├── readme.txt │ ├── bm_demo │ │ ├── main.h │ │ └── main.c │ └── mqx_demo │ │ └── main.h └── EGUI_Demo │ ├── common_sources │ ├── logo.png │ ├── ALL_SYSTEM_CHARS.txt │ ├── pictures.h │ ├── usb_classes.h │ ├── eGUI_string_table.d4d │ ├── fonts.h │ ├── main.h │ ├── hidkeyboard.h │ └── hidmouse.h │ ├── _screen_shots │ ├── main_grey.BMP │ ├── open_file.BMP │ ├── main_blue_text.BMP │ ├── main_red_pict.BMP │ ├── screen_saver.BMP │ └── settings_blue.BMP │ ├── SD_Card_Content │ ├── Fonts │ │ ├── Arial8.d4l │ │ └── CourierNew8.d4l │ └── Examples │ │ ├── Gargy.bmp │ │ └── ALL_SYSTEM_CHARS.txt │ ├── TWR_K70 │ └── IAR │ │ ├── post_built.bat │ │ ├── post_built_d.bat │ │ ├── eGUI_Demo.eww │ │ └── D4D_Configuration │ │ ├── d4dlcd_frame_buffer_cfg.h │ │ └── d4dlcdhw_k70_lcdc_cfg.h │ └── readme.txt ├── D4D ├── graphic_objects │ └── d4d_gauge.h ├── low_level_drivers │ ├── LCD │ │ ├── lcd_controllers_drivers │ │ │ ├── fsa506 │ │ │ │ ├── d4dlcd_FSA506.c │ │ │ │ ├── d4dlcd_FSA506_cfg.h.example │ │ │ │ └── d4dlcd_FSA506.h │ │ │ ├── ssd1926 │ │ │ │ └── d4dlcd_ssd1926_cfg.h.example │ │ │ ├── template │ │ │ │ ├── d4dlcd_template_cfg.h.example │ │ │ │ └── d4dlcd_template.h │ │ │ ├── lgdp4531 │ │ │ │ ├── d4dlcd_lgdp4531_cfg.h.example │ │ │ │ └── d4dlcd_lgdp4531.h │ │ │ ├── frame_buffer │ │ │ │ ├── d4dlcd_frame_buffer_cfg.h.example │ │ │ │ └── d4dlcd_frame_buffer.h │ │ │ └── ssd1289 │ │ │ │ ├── d4dlcd_SSD1289_cfg.h.example │ │ │ │ └── d4dlcd_SSD1289.h │ │ └── lcd_hw_interface │ │ │ ├── template │ │ │ ├── d4dlcdhw_template_cfg.h.example │ │ │ └── d4dlcdhw_template.h │ │ │ ├── k70_lcdc │ │ │ ├── d4dlcdhw_k70_lcdc_cfg.h.example │ │ │ ├── twr_rgb_rev_b │ │ │ │ └── d4dlcdhw_twrrgbb.h │ │ │ └── twr_rgb_rev_a │ │ │ │ └── d4dlcdhw_twrrgba.h │ │ │ ├── s12_spi_16b │ │ │ └── d4dlcdhw_s12_spi_16b_cfg.h.example │ │ │ ├── template_fb │ │ │ ├── d4dlcdhw_template_fb_cfg.h.example │ │ │ └── d4dlcdhw_template_fb.h │ │ │ ├── dragonfire_lcdc │ │ │ └── d4dlcdhw_dragonfire_lcdc_cfg.h.example │ │ │ ├── mqx_mpc5125_diu │ │ │ └── d4dlcdhw_mqx_mpc5125_diu_cfg.h.example │ │ │ └── common_drivers │ │ │ └── d4dlcdhw_common.h │ └── touch_screen │ │ ├── touch_screen_drivers │ │ ├── resistive │ │ │ ├── d4dtch_resistive_cfg.h.example │ │ │ └── d4dtch_resistive.h │ │ ├── template │ │ │ ├── d4dtch_template_cfg.h.example │ │ │ └── d4dtch_template.h │ │ ├── mcf52277_asp │ │ │ └── d4dtch_mcf52277_asp_cfg.h.example │ │ ├── cr_touch │ │ │ ├── iic_mqx │ │ │ │ └── mqx_iic_cfg.h.example │ │ │ └── iic │ │ │ │ └── hw_iic_cfg.h.example │ │ └── resistive_mqx │ │ │ └── d4dtch_resistive_mqx.h │ │ └── touch_screen_hw_interface │ │ └── template │ │ ├── d4dtchhw_template_cfg.h.example │ │ └── d4dtchhw_template.h └── configuration_example │ ├── Readme.txt │ └── d4d_screen_template.c.template ├── .gitignore ├── egui_license.txt └── README.md /DOC/_images/D4D low level driver structure.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DOC/_images/D4D low level driver structure_only.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DOC/eGUI.dox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/eGUI.dox -------------------------------------------------------------------------------- /DOC/_images/button1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/button1.png -------------------------------------------------------------------------------- /DOC/_images/button2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/button2.png -------------------------------------------------------------------------------- /DOC/_images/gauge1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/gauge1.PNG -------------------------------------------------------------------------------- /DOC/_images/gauge2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/gauge2.PNG -------------------------------------------------------------------------------- /DOC/_images/gauge3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/gauge3.PNG -------------------------------------------------------------------------------- /DOC/_images/gauge4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/gauge4.PNG -------------------------------------------------------------------------------- /DOC/_images/graph1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/graph1.PNG -------------------------------------------------------------------------------- /DOC/_images/icon1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/icon1.PNG -------------------------------------------------------------------------------- /DOC/_images/icon2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/icon2.PNG -------------------------------------------------------------------------------- /DOC/_images/label1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/label1.PNG -------------------------------------------------------------------------------- /DOC/_images/label2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/label2.PNG -------------------------------------------------------------------------------- /DOC/_images/menu1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/menu1.PNG -------------------------------------------------------------------------------- /DOC/_images/menu2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/menu2.PNG -------------------------------------------------------------------------------- /DOC/_images/screen1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/screen1.PNG -------------------------------------------------------------------------------- /DOC/_images/screen2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/screen2.PNG -------------------------------------------------------------------------------- /DOC/_images/slider1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/slider1.PNG -------------------------------------------------------------------------------- /DOC/_images/slider2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/slider2.PNG -------------------------------------------------------------------------------- /DOC/_images/console1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/console1.png -------------------------------------------------------------------------------- /DOC/_images/eGUI_Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/eGUI_Logo.png -------------------------------------------------------------------------------- /DOC/_images/edit_box1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/edit_box1.PNG -------------------------------------------------------------------------------- /DOC/_images/fsl_logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/fsl_logo.gif -------------------------------------------------------------------------------- /DOC/_images/list_box1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/list_box1.PNG -------------------------------------------------------------------------------- /DOC/_images/picture1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/picture1.PNG -------------------------------------------------------------------------------- /DOC/_images/text_box1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/text_box1.PNG -------------------------------------------------------------------------------- /DOC/egui_description.dox: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/egui_description.dox -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/.gitignore: -------------------------------------------------------------------------------- 1 | settings/ 2 | debug/ 3 | release/ -------------------------------------------------------------------------------- /DOC/_images/check_box1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/check_box1.png -------------------------------------------------------------------------------- /DOC/_images/check_box2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/check_box2.png -------------------------------------------------------------------------------- /DOC/_images/eGUI_Example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/eGUI_Example.png -------------------------------------------------------------------------------- /DOC/_images/eGUI_History.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/eGUI_History.PNG -------------------------------------------------------------------------------- /DOC/_images/group_box1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/group_box1.PNG -------------------------------------------------------------------------------- /DOC/_images/scroll_bar1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/scroll_bar1.PNG -------------------------------------------------------------------------------- /DOC/_images/Standard_scren.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/Standard_scren.png -------------------------------------------------------------------------------- /DOC/_images/converter_bmp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/converter_bmp.png -------------------------------------------------------------------------------- /DOC/_images/converter_fnt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/converter_fnt.png -------------------------------------------------------------------------------- /DOC/_images/converter_str.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/converter_str.png -------------------------------------------------------------------------------- /DOC/_images/progress_bar1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/progress_bar1.PNG -------------------------------------------------------------------------------- /DOC/_images/radio_button1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/radio_button1.png -------------------------------------------------------------------------------- /D4D/graphic_objects/d4d_gauge.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/D4D/graphic_objects/d4d_gauge.h -------------------------------------------------------------------------------- /DOC/_images/CW_FileList_D4D.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/CW_FileList_D4D.png -------------------------------------------------------------------------------- /DOC/_images/Compounded_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/Compounded_screen.png -------------------------------------------------------------------------------- /DOC/_images/memory_placement.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/memory_placement.PNG -------------------------------------------------------------------------------- /DOC/_images/01-new_driver_inCW.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/01-new_driver_inCW.png -------------------------------------------------------------------------------- /DOC/_images/02-no_editor_window.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/02-no_editor_window.png -------------------------------------------------------------------------------- /DOC/_images/04-rename_template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/04-rename_template.png -------------------------------------------------------------------------------- /DOC/_images/03-open_driver_files.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/03-open_driver_files.png -------------------------------------------------------------------------------- /DOC/_images/memory_placement_RAM.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/memory_placement_RAM.PNG -------------------------------------------------------------------------------- /DOC/_images/Low_Level_File_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/Low_Level_File_structure.png -------------------------------------------------------------------------------- /DOC/_images/D4D_low_level_driver_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/DOC/_images/D4D_low_level_driver_structure.png -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/common_sources/logo.png -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/common_source/fonts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/common_source/fonts.c -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/main_grey.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/main_grey.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/open_file.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/open_file.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/SD_Card_Content/Fonts/Arial8.d4l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/SD_Card_Content/Fonts/Arial8.d4l -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/main_blue_text.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/main_blue_text.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/main_red_pict.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/main_red_pict.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/screen_saver.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/screen_saver.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/_screen_shots/settings_blue.BMP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/_screen_shots/settings_blue.BMP -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/about_screen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/about_screen.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/menu_screen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/menu_screen.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/SD_Card_Content/Examples/Gargy.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/SD_Card_Content/Examples/Gargy.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/cmd/CFV1_BDM_P&E_Multilink_CyclonePro_Postload.cmd: -------------------------------------------------------------------------------- 1 | // After load the commands written below will be executed 2 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/cmd/CFV1_BDM_P&E_Multilink_CyclonePro_Preload.cmd: -------------------------------------------------------------------------------- 1 | // Before load the commands written below will be executed 2 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/cmd/CFV1_BDM_P&E_Multilink_CyclonePro_Reset.cmd: -------------------------------------------------------------------------------- 1 | // After reset the commands written below will be executed 2 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/cmd/CFV1_BDM_P&E_Multilink_CyclonePro_Startup.cmd: -------------------------------------------------------------------------------- 1 | // At startup the commands written below will be executed 2 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/console_screen.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/console_screen.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen_old.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/menu_screen_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/menu_screen_old.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/SD_Card_Content/Fonts/CourierNew8.d4l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/SD_Card_Content/Fonts/CourierNew8.d4l -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/ALL_SYSTEM_CHARS.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/common_sources/ALL_SYSTEM_CHARS.txt -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/about_screen_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/about_screen_old.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen_old.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen_old2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/entry_screen_old2.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen_old2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/main_screen_old2.bmp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/_screen_shots/console_screen_old.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/_screen_shots/console_screen_old.bmp -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/fsa506/d4dlcd_FSA506.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/D4D/low_level_drivers/LCD/lcd_controllers_drivers/fsa506/d4dlcd_FSA506.c -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/SD_Card_Content/Examples/ALL_SYSTEM_CHARS.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_Demo/SD_Card_Content/Examples/ALL_SYSTEM_CHARS.txt -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/startcf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/startcf.c -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/TWRLCD_MCF51JM128.mcp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nxp-archive/eGUI/HEAD/_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/TWRLCD_MCF51JM128.mcp -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/pictures.h: -------------------------------------------------------------------------------- 1 | #ifndef __PICTURES_H 2 | #define __PICTURES_H 3 | 4 | D4D_EXTERN_BMP(bmp_ScreenSaverLogo); 5 | D4D_EXTERN_BMP(bmp_cursor_normal16); 6 | D4D_EXTERN_BMP(bmp_logo); 7 | 8 | #endif -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/start.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: start.h 3 | * Purpose: Kinetis start up routines. 4 | * 5 | * Notes: 6 | */ 7 | 8 | 9 | // Function prototypes 10 | void _start(void); 11 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/MQX/IAR/egui_twrk60.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\egui_twrk60.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/egui_twrk60.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\egui_twrk60.ewp 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/arch_delay.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: arch_delay.h 3 | * Purpose: Kinetis architecture delay function. 4 | * 5 | * Notes: 6 | */ 7 | 8 | 9 | // Function prototypes 10 | inline void arch_delay(long ticks); 11 | -------------------------------------------------------------------------------- /D4D/configuration_example/Readme.txt: -------------------------------------------------------------------------------- 1 | Configuration file is used to user specify D3Driver standard (defaults) colors, sizes, properties of individual object and other behaviour of driver. 2 | 3 | Here is example file that has to be added to user application code base, and thus allows individual application settings. 4 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/iar.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: iar.h 3 | * Purpose: Define constants used by IAR toolchain 4 | * 5 | * Notes: 6 | * 7 | */ 8 | 9 | #ifndef _IAR_H_ 10 | #define _IAR_H_ 11 | 12 | /********************************************************************/ 13 | 14 | /********************************************************************/ 15 | 16 | #endif /* _IAR_H_ */ 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Object files 2 | *.o 3 | *.ko 4 | 5 | # Libraries 6 | *.lib 7 | *.a 8 | 9 | # Shared objects (inc. Windows DLLs) 10 | *.dll 11 | *.so 12 | *.so.* 13 | *.dylib 14 | 15 | # Executables 16 | *.exe 17 | *.out 18 | *.app 19 | 20 | # Folders 21 | HTML/ 22 | D4CD/ 23 | _Official_Demos/EGUI_Demo/TWR_K70/IAR/settings/ 24 | *.dep 25 | *.ewd 26 | *.pbi 27 | *.cout 28 | *.pbd 29 | *.browse 30 | _Official_Demos/EGUI_Demo/TWR_K70/IAR/D4D_LIBRARY/ 31 | *.i 32 | *.map 33 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/common/startup.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: startup.h 3 | * Purpose: Determine cause of Reset and which processor is running 4 | * 5 | * Notes: 6 | */ 7 | 8 | #ifndef _STARTUP_H_ 9 | #define _STARTUP_H_ 10 | 11 | /********************************************************************/ 12 | 13 | void common_startup(void); 14 | 15 | /********************************************************************/ 16 | 17 | #endif /* _STARTUP_H_ */ 18 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/TWR_K70/IAR/post_built.bat: -------------------------------------------------------------------------------- 1 | rem First parameter is working path 2 | echo Setting working directory to %~dp1 3 | cd %~f1 4 | 5 | echo Make directory if doesn't exists 6 | md D4D_LIBRARY 7 | 8 | echo Copy all eGUI library files 9 | copy ReleaseD4D\Exe\eGUI_Demo_d4dLib.a D4D_LIBRARY\eGUI_Demo_d4dLib.a /Y 10 | copy D4D_Configuration\d4d_user_cfg.h D4D_LIBRARY\d4d_user_cfg.h /Y 11 | 12 | xcopy ..\..\..\..\D4D\*.h D4D_LIBRARY\ /S /R /Y 13 | echo eGUI Post-build operations done 14 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/TWR_K70/IAR/post_built_d.bat: -------------------------------------------------------------------------------- 1 | rem First parameter is working path 2 | echo Setting working directory to %~dp1 3 | cd %~f1 4 | 5 | echo Make directory if doesn't exists 6 | md D4D_LIBRARY 7 | 8 | echo Copy all eGUI library files 9 | copy DebugD4D\Exe\eGUI_Demo_d4dLib.a D4D_LIBRARY\eGUI_Demo_d4dLib_d.a /Y 10 | copy D4D_Configuration\d4d_user_cfg.h D4D_LIBRARY\d4d_user_cfg.h /Y 11 | 12 | xcopy ..\..\..\..\D4D\*.h D4D_LIBRARY\ /S /R /Y 13 | echo eGUI Post-build operations done 14 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/arch_delay.s: -------------------------------------------------------------------------------- 1 | /* 2 | * File: arch_delay.s 3 | * Purpose: Delay software execution by given number of core clock ticks. 4 | * 5 | * Notes: 6 | */ 7 | 8 | ; AREA arch_delay, CODE, READONLY ; name this block of code 9 | SECTION .text : CODE 10 | EXPORT arch_delay 11 | arch_delay 12 | subs r0,#8 ; subtract function entry and exit code execution ticks 13 | loop: subs r0,#5 14 | bpl loop 15 | bx lr 16 | end -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/drivers/wdog/wdog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: wdog.h 3 | * Purpose: Provide common watchdog module routines 4 | * 5 | * Notes: 6 | */ 7 | 8 | #ifndef __WDOG_H__ 9 | #define __WDOG_H__ 10 | 11 | /********************************************************************/ 12 | 13 | // function prototypes 14 | void wdog_disable(void); 15 | void wdog_unlock(void); 16 | 17 | /********************************************************************/ 18 | #endif /* __WDOG_H__ */ 19 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/isr.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * File: isr.h 3 | * Purpose: Define interrupt service routines referenced by the vector table. 4 | * Note: Only "vectors.c" should include this header file. 5 | ******************************************************************************/ 6 | #ifndef __ISR_H 7 | #define __ISR_H 8 | 9 | extern void pit_ch0_isr (void); 10 | 11 | #undef VECTOR_084 12 | #define VECTOR_084 pit_ch0_isr 13 | 14 | #endif //__ISR_H 15 | 16 | /* End of "isr.h" */ 17 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/derivative.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Note: This file is recreated by the project wizard whenever the MCU is 3 | * changed and should not be edited by hand 4 | */ 5 | 6 | /* Include the derivative-specific header file */ 7 | #include 8 | 9 | #define _Stop asm ( mov3q #4,d0; bclr.b d0,SOPT1; stop #0x2000; ) 10 | /*!< Macro to enter stop modes, STOPE bit in SOPT1 register must be set prior to executing this macro */ 11 | 12 | #define _Wait asm ( mov3q #4,d0; bset.b d0,SOPT1; nop; stop #0x2000; ) 13 | /*!< Macro to enter wait mode */ 14 | 15 | 16 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/common_source/pictures.h: -------------------------------------------------------------------------------- 1 | #ifndef PICTURES_H 2 | #define PICTURES_H 3 | 4 | D4D_EXTERN_BMP(bmpFreescale); 5 | D4D_EXTERN_BMP(bmpGauge); 6 | D4D_EXTERN_BMP(bmpCheckBCheck); 7 | D4D_EXTERN_BMP(bmpAnimEqu1); 8 | D4D_EXTERN_BMP(bmpAnimEqu2); 9 | D4D_EXTERN_BMP(bmpAnimEqu3); 10 | D4D_EXTERN_BMP(bmpAnimEqu4); 11 | D4D_EXTERN_BMP(bmpAnimEqu5); 12 | D4D_EXTERN_BMP(bmpAnimEqu6); 13 | D4D_EXTERN_BMP(bmpAnimEqu7); 14 | D4D_EXTERN_BMP(bmpAnimEqu8); 15 | D4D_EXTERN_BMP(bmpAnimEqu9); 16 | D4D_EXTERN_BMP(bmpAnimEqu10); 17 | D4D_EXTERN_BMP(bmpAnimEqu11); 18 | D4D_EXTERN_BMP(bmpAnimEqu12); 19 | 20 | #endif -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/common_source/fonts.h: -------------------------------------------------------------------------------- 1 | #ifndef FONTS_H 2 | #define FONTS_H 3 | 4 | #define FONT_ARIAL7 0 5 | #define FONT_ARIAL7_HIGH 1 6 | #define FONT_ARIAL7_WIDE 2 7 | #define FONT_ARIAL7_BIG 3 8 | #define FONT_BERLIN_SANS_FBDEMI12 4 9 | #define FONT_BERLIN_SANS_FBDEMI12_HIGH 5 10 | #define FONT_BERLIN_SANS_FBDEMI12_BIG 6 11 | 12 | extern const D4D_FONT_DESCRIPTOR d4dfnt_CourierNew8B_desc; 13 | extern const D4D_FONT_DESCRIPTOR d4dfnt_TimesNewRoman12B_desc; 14 | extern const D4D_FONT_DESCRIPTOR d4dfnt_BerlinSansFBDemi12_desc; 15 | extern const D4D_FONT_DESCRIPTOR d4dfnt_Arial7_desc; 16 | extern const D4D_FONT_DESCRIPTOR d4dfnt_CourierNewTest_desc; 17 | #endif -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/platforms/k60_tower.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: k60_tower.h 3 | * Purpose: Definitions for the Kinetis K60 tower card 4 | * 5 | * Notes: 6 | */ 7 | 8 | #ifndef __K60_TOWER_H__ 9 | #define __K60_TOWER_H__ 10 | 11 | /********************************************************************/ 12 | 13 | /* Defines specific to the K60 tower board */ 14 | 15 | 16 | /* Define for the CPU on the K60 board */ 17 | #define CPU_MK60N512VMD100 18 | 19 | /* 20 | * System Bus Clock Info 21 | */ 22 | #define REF_CLK XTAL50 /* 50MHz crystal */ 23 | #define CORE_CLK_MHZ PLL96 /* 96MHz is only freq tested for a clock input */ 24 | 25 | #endif /* __K60_TOWER_H__ */ 26 | -------------------------------------------------------------------------------- /DOC/eGUI_ft.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 13 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/start.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: start.c 3 | * Purpose: Kinetis start up routines. 4 | * 5 | * Notes: 6 | */ 7 | 8 | #include "start.h" 9 | #include "common.h" 10 | #include "wdog.h" 11 | 12 | /********************************************************************/ 13 | /*! 14 | * \brief Kinetis Start 15 | * \return None 16 | * 17 | * This function calls all of the needed starup routines and then 18 | * branches to the main process. 19 | */ 20 | void start(void) 21 | { 22 | /* Disable the watchdog timer */ 23 | wdog_disable(); 24 | 25 | /* Copy any vector or data sections that need to be in RAM */ 26 | common_startup(); 27 | 28 | /* Jump to main process */ 29 | main(); 30 | 31 | /* No actions to perform after this so wait forever */ 32 | while(1); 33 | } 34 | /********************************************************************/ 35 | 36 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/crt0.s: -------------------------------------------------------------------------------- 1 | /* 2 | * File: crt0.s 3 | * Purpose: Lowest level routines for Kinetis. 4 | * 5 | * Notes: 6 | * 7 | */ 8 | 9 | ; AREA Crt0, CODE, READONLY ; name this block of code 10 | SECTION .noinit : CODE 11 | 12 | EXPORT __startup 13 | __startup 14 | MOVS r0,#0 ; Initialize the GPRs 15 | MOV r1,r0 16 | MOV r2,r0 17 | MOV r3,r0 18 | MOV r4,r0 19 | MOV r5,r0 20 | MOV r6,r0 21 | MOV r7,r0 22 | MOV r8,r0 23 | MOV r9,r0 24 | MOV r10,r0 25 | MOV r11,r0 26 | MOV r12,r0 27 | CPSID i ; Disable interrupt by default 28 | import start 29 | BL start ; call the C code 30 | __done 31 | B __done 32 | 33 | 34 | END 35 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/drivers/mcg/mcg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: pll_init.h 3 | * Purpose: pll_driver specific declarations 4 | * 5 | * Notes: 6 | */ 7 | #ifndef __MCG_H__ 8 | #define __MCG_H__ 9 | /********************************************************************/ 10 | 11 | void PLL_Init(unsigned char, unsigned char); 12 | 13 | enum clk_option 14 | { 15 | PLL50, 16 | PLL100, 17 | PLL96, 18 | PLL48 19 | }; 20 | 21 | enum crystal_val 22 | { 23 | XTAL2, 24 | XTAL4, 25 | XTAL6, 26 | XTAL8, 27 | XTAL10, 28 | XTAL12, 29 | XTAL14, 30 | XTAL16, 31 | XTAL18, 32 | XTAL20, 33 | XTAL22, 34 | XTAL24, 35 | XTAL26, 36 | XTAL28, 37 | XTAL30, 38 | XTAL32, 39 | XTAL34, 40 | XTAL36, 41 | XTAL38, 42 | XTAL40, 43 | XTAL42, 44 | XTAL44, 45 | XTAL46, 46 | XTAL48, 47 | XTAL50 48 | }; 49 | 50 | /********************************************************************/ 51 | #endif /* __MCG_H__ */ 52 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/readme.txt: -------------------------------------------------------------------------------- 1 | Freescale eGUI EGUI_Demo projects 2 | 3 | This demo is showing external resources eGUI capability in demo that simulate standard forms. The demo is also showing capability of Keyboard & mouse handling in eGUI, 4 | both these device can be connected over serial card UAB connector. 5 | 6 | Directories: 7 | - common_source: contains all common source files for application 8 | - SD_Card_Content: The basic contntent of SD card to run the demo correctly. 9 | - screen_shot: caontais sreen shots of demo graphic screen 10 | - TWR_K70: project for TWR-K70 Kinetis board and TWR-LCDRGB 480x272 module over LCDC driver. 11 | 12 | TWR-SER card settings: 13 | The card has to be setup to provide UAB host capability: J10: 1-2; J16: 1-2. 14 | 15 | TWR-K70F120 card settings: 16 | Use default setting of card 17 | 18 | TWR-LCDRGB: 19 | The demo supports revision B and newer revisions of this card. 20 | 21 | The MQX Settings: 22 | The only two changes in MQX configuration is enabled Time Slice and Disabled ROM vectors: 23 | 24 | #define MQX_HAS_TIME_SLICE 1 25 | #define MQX_ROM_VECTORS 0 -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/readme.txt: -------------------------------------------------------------------------------- 1 | Freescale eGUI EGUI_D4D_Demo projects 2 | 3 | Directories: 4 | - common_source: contains all common source files for graphic screens 5 | - mqx_demo: the system files of MQX application (tasks, etc...) 6 | - screen_shot: caontais sreen shots of demo graphic screen 7 | - TWRLCD_MCF51JM128: project for standalone TWR-LCD board and MCF51JM128 onboard MCU over SPI driver. 8 | - TWR_K60D100M: project for TWR-K60 Kinetis board and TWR-LCD 320x240 module over FlexBus driver. 9 | 10 | 11 | 12 | TWR-LCD module settings: 13 | - touch screen through elevator: SW5 must have sets all switches to ON. 14 | - LCD SPI through elevator: switch are set up with in follow sequence "01111110". 15 | - LCD flexbus 16 bits through elevator: switch are set up with in follow sequence "10111110". 16 | - LCD SPI with onboard MCF51JM128: switch are set up with in follow sequence "01001110". 17 | 18 | 19 | Tips & Tricks: 20 | - for TWR-LCD module: If you want to run project from TOWER (not from onboard MCF51JM128) be sure to load into onboard MCF51JM128 any empty project 21 | to avoid any conflist on shared LCD signals. 22 | -------------------------------------------------------------------------------- /egui_license.txt: -------------------------------------------------------------------------------- 1 | The eGUI project is free software: you can redistribute it and/or modify 2 | it under the terms of either the GNU General Public License 3 | Version 3 or later (the "GPL"), or the GNU Lesser General Public 4 | License Version 3 or later (the "LGPL"). 5 | 6 | As a special exception, the copyright holders of the eGUI project give you 7 | permission to link the eGUI sources with independent modules to produce an 8 | executable, regardless of the license terms of these independent modules, 9 | and to copy and distribute the resulting executable under terms of your 10 | choice, provided that you also meet, for each linked independent module, 11 | the terms and conditions of the license of that module. 12 | An independent module is a module which is not derived from or based 13 | on this library. 14 | If you modify the eGUI sources, you may extend this exception 15 | to your version of the eGUI sources, but you are not obligated 16 | to do so. If you do not wish to do so, delete this 17 | exception statement from your version. 18 | 19 | This program is distributed in the hope that it will be useful, 20 | but WITHOUT ANY WARRANTY; without even the implied warranty of 21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22 | 23 | You should have received a copy of the GNU General Public License 24 | and the GNU Lesser General Public License along with this program. 25 | If not, see . 26 | 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![eGUI](http://gargy007.github.io/egui_doc/eGUI_Logo.png) 2 | ==== 3 | 4 | ---------------------------------------------------------------- 5 | | !!! All links MUST be updated to reflect new owner place !!! | 6 | ---------------------------------------------------------------- 7 | 8 | Welcome to eGUI embedded graphic library Wiki pages. 9 | 10 | 11 | The eGUI is originaly developed by www.freescale.com company. 12 | 13 | ![eGUI Example picture](http://gargy007.github.io/egui_doc/downloads/fsl_logo.gif) 14 | 15 | Since February 2014 is available free under LGPL license, to allow community extend this project. 16 | 17 | 18 | Documentation 19 | ============= 20 | **[eGUI Reference manual](http://gargy007.github.io/egui_doc/)**, The direct link is: http://gargy007.github.io/egui_doc/. 21 | 22 | 23 | Downloads : 24 | =========== 25 | **[Freescale eGUI Presentation 3.0] (http://gargy007.github.io/egui_doc/downloads/eGUI_v3_00.pptx)** 26 | 27 | **[Freescale eGUI Converter Utility 3.0] (http://gargy007.github.io/egui_doc/downloads/Freescale Embedded GUI Converter Utility 3.0.zip)** 28 | 29 | Similar projects : 30 | ================== 31 | The simplified version has been done for the alpha numerical displays (with driver like HD44780 etc). 32 | Please check also: **[D4CD - Modification of the eGUI(D4D) driver for char displays] (https://github.com/Gargy007/D4CD)** 33 | 34 | Email : 35 | =========== 36 | egui.library@gmail.com 37 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/exceptions.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: exceptions.h 3 | * Purpose: Generic exception handling for ColdFire processors 4 | * 5 | * Notes: 6 | */ 7 | 8 | #ifndef _MCF_EXCEPTIONS_H 9 | #define _MCF_EXCEPTIONS_H 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | /***********************************************************************/ 16 | /* 17 | * This is the handler for all exceptions which are not common to all 18 | * ColdFire Chips. 19 | * 20 | * Called by mcf_exception_handler 21 | * 22 | */ 23 | void derivative_interrupt(unsigned long vector); 24 | 25 | /***********************************************************************/ 26 | /* 27 | * This is the exception handler for all exceptions common to all 28 | * chips ColdFire. Most exceptions do nothing, but some of the more 29 | * important ones are handled to some extent. 30 | * 31 | * Called by asm_exception_handler 32 | */ 33 | void mcf_exception_handler(void *framepointer); 34 | 35 | 36 | /***********************************************************************/ 37 | /* 38 | * This is the assembly exception handler defined in the vector table. 39 | * This function is in assembler so that the frame pointer can be read 40 | * from the stack. 41 | * Note that the way to give the stack frame as argument to the c handler 42 | * depends on the used ABI (Register, Compact or Standard). 43 | * 44 | */ 45 | asm void asm_exception_handler(void); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif /* _MCF_EXCEPTIONS_H */ 52 | 53 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/TWR_K70/IAR/eGUI_Demo.eww: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $WS_DIR$\eGUI_Demo.ewp 6 | 7 | 8 | $WS_DIR$\eGUI_Demo_d4dLib.ewp 9 | 10 | 11 | 12 | All 13 | 14 | eGUI_Demo_d4dLib 15 | Debug 16 | 17 | 18 | eGUI_Demo_d4dLib 19 | Release 20 | 21 | 22 | eGUI_Demo 23 | Debug 24 | 25 | 26 | eGUI_Demo 27 | Release 28 | 29 | 30 | 31 | Debug 32 | 33 | eGUI_Demo_d4dLib 34 | Debug 35 | 36 | 37 | eGUI_Demo 38 | Debug 39 | 40 | 41 | 42 | Release 43 | 44 | eGUI_Demo_d4dLib 45 | Release 46 | 47 | 48 | eGUI_Demo 49 | Release 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/usb_classes.h: -------------------------------------------------------------------------------- 1 | /**HEADER******************************************************************** 2 | * 3 | * Copyright (c) 2008 Freescale Semiconductor; 4 | * All Rights Reserved 5 | * 6 | * Copyright (c) 1989-2008 ARC International; 7 | * All Rights Reserved 8 | * 9 | *************************************************************************** 10 | * 11 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 12 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 13 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 14 | * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 15 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 16 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 17 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 18 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 19 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 20 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 21 | * THE POSSIBILITY OF SUCH DAMAGE. 22 | * 23 | ************************************************************************** 24 | * 25 | * $FileName: usb_classes.h$ 26 | * $Version : 3.0.1.0$ 27 | * $Date : Jan-15-2014$ 28 | * 29 | * Comments: 30 | * 31 | * This file contains application-specific configuration options to 32 | * enable different USB class drivers in HDK. 33 | * 34 | *END************************************************************************/ 35 | 36 | #ifndef __usb_classes_h__ 37 | #define __usb_classes_h__ 38 | 39 | #define USBCLASS_INC_HID 40 | #define USBCLASS_INC_HUB 41 | 42 | #endif 43 | /* EOF */ 44 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/drivers/wdog/wdog.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: wdog.c 3 | * Purpose: Provide common watchdog module routines 4 | * 5 | * Notes: Need to add more functionality. Right now it 6 | * is just a disable routine since we know almost 7 | * all projects will need that. 8 | * 9 | */ 10 | 11 | #include "common.h" 12 | #include "wdog.h" 13 | 14 | /********************************************************************/ 15 | /* 16 | * Watchdog timer disable routine 17 | * 18 | * Parameters: 19 | * none 20 | */ 21 | void wdog_disable(void) 22 | { 23 | /* First unlock the watchdog so that we can write to registers */ 24 | wdog_unlock(); 25 | 26 | /* Clear the WDOGEN bit to disable the watchdog */ 27 | WDOG_STCTRLH &= ~WDOG_STCTRLH_WDOGEN_MASK; 28 | } 29 | /********************************************************************/ 30 | /* 31 | * Watchdog timer unlock routine. Writing 0xC520 followed by 0xD928 32 | * will unlock the write once registers in the WDOG so they are writable 33 | * within the WCT period. 34 | * 35 | * Parameters: 36 | * none 37 | */ 38 | void wdog_unlock(void) 39 | { 40 | /* NOTE: DO NOT SINGLE STEP THROUGH THIS FUNCTION!!! */ 41 | /* There are timing requirements for the execution of the unlock. If 42 | * you single step through the code you will cause the CPU to reset. 43 | */ 44 | 45 | /* 46 | * This sequence must execute within 20 clock cycles, so disable 47 | * interrupts will keep the code atomic and ensure the timing. 48 | */ 49 | 50 | /* Write 0xC520 to the unlock register */ 51 | WDOG_UNLOCK = 0xC520; 52 | 53 | /* Followed by 0xD928 to complete the unlock */ 54 | WDOG_UNLOCK = 0xD928; 55 | 56 | } 57 | /********************************************************************/ 58 | -------------------------------------------------------------------------------- /DOC/Converter.dox: -------------------------------------------------------------------------------- 1 | /*! 2 | \page egui_converter Converter utility 3 | 4 | Introduction 5 | ============ 6 | 7 | The Freescale Embedded GUI Converter Utility 3.0 8 | converts images, fonts and strings into data in ANSI C language and binary formats 9 | resulting in a format suitable for the eGUI 10 | LCD driver for MCUs and MPUs. Output data are stored as 11 | in source and header files, as optionaly in binary formats. The utility enables plenty of 12 | conversion modes (color, grayscale, monochrome, 13 | palette) and color modes (65536, 4096, 256, 2 colors) for 14 | image conversion. The images can also be adjusted 15 | (change size, rotate, flip) before the conversion. Various 16 | fonts, including UNICODE, can be easily customized, converted, and used 17 | effectively with the eGUI LCD driver. 18 | The utility is able also generate the string tables with smart support of multilanguage. 19 | Also there is implemented save/load functionality to handle multilanguge string tables project on PC. 20 | 21 | @image html _images/converter_bmp.png Figure 1: Converter utility bitmaps page 22 | @image rtf _images/converter_bmp.png Figure 1: Converter utility bitmaps page 23 | @image latex _images/converter_bmp.png Figure 1: Converter utility bitmaps page 24 | 25 | @image html _images/converter_fnt.png Figure 2: Converter utility fonts page 26 | @image rtf _images/converter_fnt.png Figure 2: Converter utility fonts page 27 | @image latex _images/converter_fnt.png Figure 2: Converter utility fonts page 28 | 29 | @image html _images/converter_str.png Figure 3: Converter utility strings page 30 | @image rtf _images/converter_str.png Figure 3: Converter utility strings page 31 | @image latex _images/converter_str.png Figure 3: Converter utility strings page 32 | 33 | 34 | 35 | Download : [Freescale eGUI Converter Utility 3.0] (downloads/Freescale Embedded GUI Converter Utility 3.0.zip) 36 | ============ 37 | 38 | */ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/d4dtch_resistive_cfg.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 2009 Freescale Semiconductor; 4 | * All Rights Reserved 5 | * 6 | ******************************************************************************* 7 | * 8 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 9 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 10 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 11 | * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 12 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 13 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 14 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 15 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 16 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 17 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 18 | * THE POSSIBILITY OF SUCH DAMAGE. 19 | * 20 | ***************************************************************************//*! 21 | * 22 | * @file d4dtch_resistive_cfg.h 23 | * 24 | * @author b01119 25 | * 26 | * @version 0.0.1.0 27 | * 28 | * @date Feb-1-2011 29 | * 30 | * @brief D4D driver - resistive touch screen driver function header file 31 | * 32 | *******************************************************************************/ 33 | 34 | #ifndef __D4DTCH_RESISTIVE_CFG_H 35 | #define __D4DTCH_RESISTIVE_CFG_H 36 | 37 | 38 | /****************************************************************************** 39 | * includes 40 | ******************************************************************************/ 41 | 42 | 43 | /****************************************************************************** 44 | * Constants 45 | ******************************************************************************/ 46 | 47 | 48 | #endif /* __D4DTCH_RESISTIVE_CFG_H */ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/512KB_Pflash.icf: -------------------------------------------------------------------------------- 1 | /*###ICF### Section handled by ICF editor, don't touch! ****/ 2 | /*-Editor annotation file-*/ 3 | /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ 4 | /*-Specials-*/ 5 | define symbol __ICFEDIT_intvec_start__ = 0x00000000; 6 | /*-Memory Regions-*/ 7 | define symbol __ICFEDIT_region_ROM_start__ = 0x00000000; 8 | define symbol __ICFEDIT_region_ROM_end__ = 0x00080000; 9 | define symbol __ICFEDIT_region_RAM_start__ = 0x1FFF0000; 10 | define symbol __ICFEDIT_region_RAM_end__ = 0x20010000; 11 | /*-Sizes-*/ 12 | define symbol __ICFEDIT_size_cstack__ = 0x1000; 13 | define symbol __ICFEDIT_size_heap__ = 0x800; 14 | /**** End of ICF editor section. ###ICF###*/ 15 | 16 | define exported symbol __VECTOR_TABLE = 0x00000000; 17 | 18 | define exported symbol __BOOT_STACK_ADDRESS = __ICFEDIT_region_RAM_end__ - 8; //0x2000FFF8; 19 | 20 | define symbol __code_start__ = 0x00000410; 21 | define symbol __second_flash_block__ = 0x00020000; 22 | 23 | define memory mem with size = 4G; 24 | define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; 25 | define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__]; 26 | 27 | define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; 28 | define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { }; 29 | 30 | initialize manually { readwrite }; 31 | initialize manually { section .data}; 32 | initialize manually { section .textrw }; 33 | do not initialize { section .noinit }; 34 | 35 | define block CodeRelocate { section .textrw_init }; 36 | define block CodeRelocateRam { section .textrw }; 37 | 38 | place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; 39 | place at address mem:__code_start__ { readonly section .noinit }; 40 | place at address mem:__second_flash_block__ { readonly section .nvm }; 41 | 42 | place in ROM_region { readonly, block CodeRelocate}; 43 | 44 | place in RAM_region { readwrite, block CodeRelocateRam, 45 | block CSTACK, block HEAP }; 46 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/eGUI_string_table.d4d: -------------------------------------------------------------------------------- 1 | 3.0 2 | 3 3 | 40 4 | OPEN 5 | OPENFILE 6 | CLOSE 7 | CANCEL 8 | OK 9 | SYSTEM 10 | DIRECTORIES 11 | FILES 12 | DISK 13 | LANG 14 | LANGEN 15 | LANGCZ 16 | LANGCHI 17 | LANGRES1 18 | LANGRES2 19 | LANGRES3 20 | LANGRES4 21 | SETTINGS 22 | SCHEME 23 | SCHEME_GREY 24 | SCHEME_GREEN 25 | SCHEME_BLUE 26 | SCHEME_RED 27 | FONTS 28 | FONTS_COURIER 29 | FONTS_ARIAL 30 | SCRSVR 31 | ENABLE 32 | DUMMY_LABEL 33 | COULD_NOT_SHOW 34 | IMAGE_INFO 35 | TYPE 36 | WIDTH 37 | HEIGHT 38 | SIZE 39 | TEXT_INFO 40 | ASCII 41 | UNICODE 42 | INFO 43 | UNKNOWN 44 | Czech 45 | Otevřít 46 | Otevřít soubor 47 | Zavřít 48 | Zrušit 49 | OK 50 | System 51 | Adresáře 52 | Soubory 53 | Disk 54 | Jazyk 55 | Angličtina 56 | Čeština 57 | Čínština 58 | Rezerva1 59 | Rezerva2 60 | Rezerva3 61 | Rezerva4 62 | Nastavení 63 | Schéma 64 | Šedé 65 | Zelené 66 | Modré 67 | Červené 68 | Písmo 69 | Courier 70 | Arial 71 | Sporič obrazovky 72 | Povolit 73 | Obsah souboru. Použij tlačítko OTEVŘÍT! 74 | Nejde zobrazit! 75 | Informace 76 | Typ: 77 | Šířka: 78 | Výška: 79 | Velikost: 80 | Informace 81 | ASCII 82 | Unicode 83 | Informace 84 | Neznámá 85 | Chinese_BIG5 86 | 打开 87 | 打开文件 88 | 关闭 89 | 取消 90 | 确定 91 | 系统 92 | 目录 93 | 文件 94 | 磁盘 95 | 语言 96 | 英语 97 | 捷克语 98 | 汉语 99 | 预留1 100 | 预留2 101 | 预留3 102 | 预留4 103 | 设置 104 | 方案 105 | 灰色 106 | 绿色 107 | 蓝色 108 | 红色 109 | 字体 110 | Courier 111 | Arial 112 | 屏保 113 | 使能 114 | 文件内容。 使用“打开”按钮 115 | 不能显示! 116 | 图像信息 117 | 类型 118 | 宽 119 | 高 120 | 尺寸 121 | 文本信息 122 | ASCII 123 | UniCode 124 | 信息 125 | 未知 126 | English 127 | Open 128 | Open File 129 | Close 130 | Cancel 131 | OK 132 | System 133 | Directories 134 | Files 135 | Disk 136 | Language 137 | English 138 | Czech 139 | Chinesse 140 | Reserve1 141 | Reserve2 142 | Reserve3 143 | Reserve4 144 | Settings 145 | Scheme 146 | Grey 147 | Green 148 | Blue 149 | Red 150 | Fonts 151 | Courier 152 | Arial 153 | Screen saver 154 | Enable 155 | File Content. Use OPEN button! 156 | Could not show! 157 | Image info 158 | Type: 159 | Width: 160 | Height: 161 | Size: 162 | Text info 163 | ASCII 164 | Unicode 165 | Info 166 | Unknown 167 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/drivers/sim/sim.c: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * (c) Copyright 2010, Freescale Semiconductor Inc. 3 | * ALL RIGHTS RESERVED. 4 | ***************************************************************************//*! 5 | * @file sim.c 6 | * @author R55013 7 | * @version 1.0.5.0 8 | * @date Jan-24-2013 9 | * @brief SIM driver implementation. 10 | * @par Driver example: 11 | * @include vref_test\vref_test.c 12 | * @par Interrupt vector definition(s): 13 | * @include vref_test\isr.h 14 | ******************************************************************************/ 15 | #include "common.h" 16 | #include "sim.h" 17 | 18 | /****************************************************************************** 19 | * Public functions definitions * 20 | ******************************************************************************/ 21 | 22 | /***************************************************************************//*! 23 | * @brief SIM module initialization function. 24 | * @param sim - SIM module configuration structure passed by value:\n 25 | * SIM_MODULE_CONFIG\n 26 | * @return none 27 | * @note Implemented as function call. 28 | ******************************************************************************/ 29 | #pragma diag_suppress=Pa082 30 | void SIM_Init (tSIM sim) 31 | { 32 | SIM_SOPT1 |= sim.SOPT1; 33 | SIM_SOPT2 |= sim.SOPT2; 34 | SIM_SOPT4 |= sim.SOPT4; 35 | SIM_SOPT5 |= sim.SOPT5; 36 | //SIM_SOPT6 |= sim.SOPT6; B34185 37 | SIM_SOPT7 |= sim.SOPT7; 38 | SIM_SCGC1 |= sim.SCGC1; 39 | SIM_SCGC2 |= sim.SCGC2; 40 | SIM_SCGC3 |= sim.SCGC3; 41 | SIM_SCGC4 |= sim.SCGC4; 42 | SIM_SCGC5 |= sim.SCGC5; 43 | SIM_SCGC6 |= sim.SCGC6; 44 | SIM_SCGC7 |= sim.SCGC7; 45 | SIM_CLKDIV1 |= sim.CLKDIV1; 46 | SIM_CLKDIV2 |= sim.CLKDIV2; 47 | } 48 | /****************************************************************************** 49 | * End of module * 50 | ******************************************************************************/ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/fonts.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************** 33 | * 34 | * $FileName: fonts.h$ 35 | * $Version : 1.0.3.0$ 36 | * $Date : Jan-14-2014$ 37 | * 38 | * Comments: 39 | * 40 | * Author: eGUI Converter utility 41 | * 42 | * This file contains the generated fonts data by eGUI converter utility 43 | * 44 | *END************************************************************************/ 45 | 46 | #ifndef __FONTS_H 47 | #define __FONTS_H 48 | 49 | #define FONT_SYSTEM 0 50 | #define FONT_SYSTEM_SMALL 1 51 | #define FONT_SYSTEM_BIG 2 52 | 53 | extern const D4D_FONT_DESCRIPTOR d4dfnt_CourierNew12_desc; 54 | 55 | extern const D4D_FONT_DESCRIPTOR d4dfnt_Arial12_desc; 56 | 57 | extern const D4D_FONT_TYPE fontTable_Arial[]; 58 | 59 | #endif -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/startcf.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | FILE : startcf.h 3 | PURPOSE : startup code for ColdFire 4 | LANGUAGE: C 5 | 6 | 7 | Notes: 8 | 1) Default entry point is _startup. 9 | . disable interrupts 10 | . the SP is set to __SP_AFTER_RESET 11 | . SP must be initialized to valid memory 12 | in case the memory it points to is not valid using MEMORY_INIT macro 13 | 2) __initialize_hardware is called. Here you can initialize memory and some peripherics 14 | at this point global variables are not initialized yet 15 | 3) After __initialize_hardware memory is setup; initialize SP to _SP_INIT and perform 16 | needed initialisations for the language (clear memory, data rom copy). 17 | 4) void __initialize_system(void); is called 18 | to allow additional hardware initialization (UART, GPIOs, etc...) 19 | 5) Jump to main 20 | 21 | */ 22 | /********************************************************************************/ 23 | 24 | #ifndef STARTCF_H 25 | #define STARTCF_H 26 | 27 | 28 | #ifdef __cplusplus 29 | extern "C" { 30 | #endif 31 | 32 | #ifdef STARTCF_INCLUDE 33 | #include STARTCF_INCLUDE 34 | #endif 35 | 36 | #pragma warn_any_ptr_int_conv off 37 | #pragma warn_absolute off 38 | 39 | extern unsigned long far __SP_INIT[]; 40 | extern unsigned long far __SP_AFTER_RESET[]; 41 | 42 | #ifndef MEMORY_INIT 43 | /* If MEMORY_INIT is set then it performs 44 | minimal memory initialization (to preset SP to __SP_AFTER_RESET, etc...) 45 | */ 46 | #define MEMORY_INIT 47 | #endif 48 | 49 | void __declspec(register_abi) _startup(void); 50 | 51 | #ifndef SUPPORT_ROM_TO_RAM 52 | /* 53 | * If SUPPORT_ROM_TO_RAM is set, _S_romp is used to define the copy to be performed. 54 | * If it is not set, there's a single block to copy, performed directly without 55 | * using the __S_romp structure, based on __DATA_RAM, __DATA_ROM and 56 | * __DATA_END symbols. 57 | * 58 | * Set to 0 for more aggressive dead stripping ... 59 | */ 60 | #define SUPPORT_ROM_TO_RAM 1 61 | #endif 62 | 63 | /* format of the ROM table info entry ... */ 64 | typedef struct RomInfo { 65 | void *Source; 66 | void *Target; 67 | unsigned long Size; 68 | } RomInfo; 69 | 70 | /* imported data */ 71 | extern far RomInfo _S_romp[]; /* linker defined symbol */ 72 | 73 | #ifdef __cplusplus 74 | } 75 | #endif 76 | 77 | #endif 78 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/common_source/d4d_screen_log.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4d_screen_log.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Aug-6-2012 41 | * 42 | * @brief D4D driver - log screen header file 43 | * 44 | ******************************************************************************/ 45 | 46 | #ifndef SCRLOG_H 47 | #define SCRLOG_H 48 | 49 | #include "main.h" 50 | 51 | #if D4D_MCU_TYPE != D4D_HCS08 52 | void Log_AddObjectEvent(D4D_OBJECT_PTR pObj, D4D_TCHAR* pEvent); 53 | void Log_AddScreenEvent(D4D_TCHAR* pScrText, D4D_TCHAR* pEvent); 54 | #else 55 | #define Log_AddObjectEvent(x,y) { (void)(x); (void)(y); } 56 | #define Log_AddScreenEvent(x,y) { (void)(x); (void)(y); } 57 | #endif 58 | 59 | #endif 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/D4D_Configuration/d4dlcd_SSD1289_cfg.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_SSD1289_cfg.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Aug-6-2012 41 | * 42 | * @brief D4D driver SSD1289 hardware level LCD header configuration file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_SSD1289_CFG_H 47 | #define __D4DLCD_SSD1289_CFG_H 48 | 49 | /****************************************************************************** 50 | * includes 51 | ******************************************************************************/ 52 | 53 | // #include "derivative.h" 54 | 55 | #endif /* __D4DLCD_SSD1289_CFG_H */ 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/D4D_Configuration/d4dtch_resistive_cfg.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_resistive_cfg.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Aug-6-2012 41 | * 42 | * @brief D4D driver - resistive touch screen driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_RESISTIVE_CFG_H 47 | #define __D4DTCH_RESISTIVE_CFG_H 48 | 49 | /****************************************************************************** 50 | * Constants 51 | ******************************************************************************/ 52 | 53 | // the buffer lenght of average filter used to clear up input adc signals 54 | //#define AVERAGE_BUFF_LEN 6 55 | 56 | #endif /* __D4DTCH_RESISTIVE_CFG_H */ -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/resistive/d4dtch_resistive_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_resistive_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date May-11-2010 41 | * 42 | * @brief D4D driver - resistive touch screen driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_RESISTIVE_CFG_H 47 | #define __D4DTCH_RESISTIVE_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | 54 | 55 | /****************************************************************************** 56 | * Constants 57 | ******************************************************************************/ 58 | 59 | 60 | #endif /* __D4DTCH_RESISTIVE_CFG_H */ 61 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/bm_demo/main.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * $FileName: main.h$ 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * $Version : 1.0$ 39 | * 40 | * $Date : Mar-19-2015$ 41 | * 42 | * Comments: 43 | * 44 | * This file contains the header information for the eGUI example project. 45 | * 46 | *END************************************************************************/ 47 | 48 | #ifndef __main_h_ 49 | #define __main_h_ 50 | 51 | 52 | #include "d4d.h" 53 | #include "fonts.h" 54 | #include "pictures.h" 55 | #include "d4d_screen_log.h" 56 | 57 | typedef union 58 | { 59 | LWord all; 60 | struct 61 | { 62 | unsigned b25ms :1; 63 | unsigned b50ms : 1; 64 | unsigned b100ms : 1; 65 | unsigned b200ms : 1; 66 | unsigned b400ms : 1; 67 | unsigned b800ms : 1; 68 | unsigned b1600ms : 1; 69 | unsigned b3200ms : 1; 70 | }bits; 71 | }TIME_FLAGS; 72 | 73 | extern TIME_FLAGS time; 74 | extern LWord time100sm_cnt; 75 | 76 | #endif /* __main_h_ */ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/Sources/main.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * $FileName: main.h$ 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * $Version : 3.6.1.0$ 39 | * 40 | * $Date : Aug-14-2012$ 41 | * 42 | * Comments: 43 | * 44 | * This file contains the header information for the eGUI example project. 45 | * 46 | *END************************************************************************/ 47 | 48 | #ifndef MAIN_H 49 | #define MAIN_H 50 | 51 | #include "d4d.h" 52 | #include "fonts.h" 53 | #include "pictures.h" 54 | #include "derivative.h" 55 | #include "d4d_screen_log.h" 56 | 57 | // typedef definitions 58 | 59 | typedef union 60 | { 61 | LWord all; 62 | 63 | struct 64 | { 65 | unsigned b25ms :1; 66 | unsigned b50ms : 1; 67 | unsigned b100ms : 1; 68 | unsigned b200ms : 1; 69 | unsigned b400ms : 1; 70 | unsigned b800ms : 1; 71 | unsigned b1600ms : 1; 72 | unsigned b3200ms : 1; 73 | }bits; 74 | 75 | }TIME_FLAGS; 76 | 77 | 78 | 79 | // global variables externs 80 | extern TIME_FLAGS time; 81 | extern LWord time100sm_cnt; 82 | 83 | #endif MAIN_H -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/fsa506/d4dlcd_FSA506_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_FSA506_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date May-7-2010 41 | * 42 | * @brief D4D driver - fsa506 lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_FSA506_CFG_H 47 | #define __D4DLCD_FSA506_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCD_FSA506_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/ssd1926/d4dlcd_ssd1926_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_ssd1926_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - ssd1926 lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_SSD1926_CFG_H 47 | #define __D4DLCD_SSD1926_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCD_SSD1926_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/template/d4dlcd_template_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_template.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Apr-26-2010 41 | * 42 | * @brief D4D driver - template lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_TEMPLATE_CFG_H 47 | #define __D4DLCD_TEMPLATE_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCD_TEMPLATE_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/lgdp4531/d4dlcd_lgdp4531_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_lgdp4531_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jul-23-2010 41 | * 42 | * @brief D4D driver - lgdp4531 lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_LGDP4531_CFG_H 47 | #define __D4DLCD_LGDP4531_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCD_LGDP4531_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/template/d4dlcdhw_template_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_template.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Apr-26-2010 41 | * 42 | * @brief D4D driver - template hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_TEMPLATE_CFG_H 47 | #define __D4DLCDHW_TEMPLATE_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_TEMPLATE_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/k70_lcdc/d4dlcdhw_k70_lcdc_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_k70_lcdc_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Nov-29-2011 41 | * 42 | * @brief D4D driver - k70_lcdc hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_K70_LCDC_CFG_H 47 | #define __D4DLCDHW_K70_LCDC_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_K70_LCDC_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/template/d4dtch_template_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_template.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Apr-26-2010 41 | * 42 | * @brief D4D driver - template touch screen driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_TEMPLATE_CFG_H 47 | #define __D4DTCH_TEMPLATE_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DTCH_TEMPLATE_CFG_H */ 63 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/common/startup.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: startup.c 3 | * Purpose: Generic Kinetis startup code 4 | * 5 | * Notes: 6 | */ 7 | 8 | #include "common.h" 9 | 10 | #pragma section = ".data" 11 | #pragma section = ".data_init" 12 | #pragma section = ".bss" 13 | #pragma section = "CodeRelocate" 14 | #pragma section = "CodeRelocateRam" 15 | 16 | #ifndef NEW_COMMON_DEFINITION 17 | /****************************************************************************** 18 | * System register file definitions * 19 | ******************************************************************************/ 20 | __root __no_init volatile uint8 SystemRegisterFile[32] @ 0x40041000; 21 | #endif 22 | 23 | /********************************************************************/ 24 | void 25 | common_startup(void) 26 | { 27 | // extern char __DATA_ROM[]; 28 | // extern char __DATA_RAM[]; 29 | // extern char __DATA_END[]; 30 | 31 | /* Declare a counter we'll use in all of the copy loops */ 32 | uint32 n; 33 | 34 | 35 | /* Addresses for VECTOR_TABLE come from the linker file */ 36 | extern uint32 __VECTOR_TABLE[]; 37 | 38 | /* Point the VTOR to the new copy of the vector table */ 39 | write_vtor((uint32)__VECTOR_TABLE); 40 | 41 | /* Get the addresses for the .data section (initialized data section) */ 42 | uint8* data_ram = __section_begin(".data"); 43 | uint8* data_rom = __section_begin(".data_init"); 44 | uint8* data_rom_end = __section_end(".data_init"); 45 | 46 | /* Copy initialized data from ROM to RAM */ 47 | n = data_rom_end - data_rom; 48 | while (n--) 49 | *data_ram++ = *data_rom++; 50 | 51 | 52 | /* Get the addresses for the .bss section (zero-initialized data) */ 53 | uint8* bss_start = __section_begin(".bss"); 54 | uint8* bss_end = __section_end(".bss"); 55 | 56 | /* Clear the zero-initialized data section */ 57 | n = bss_end - bss_start; 58 | while(n--) 59 | *bss_start++ = 0; 60 | 61 | /* Get addresses for any code sections that need to be copied from ROM to RAM. 62 | * The IAR tools have a predefined keyword that can be used to mark individual 63 | * functions for execution from RAM. Add "__ramfunc" before the return type in 64 | * the function prototype for any routines you need to execute from RAM instead 65 | * of ROM. ex: __ramfunc void foo(void); 66 | */ 67 | uint8* code_relocate_ram = __section_begin("CodeRelocateRam"); 68 | uint8* code_relocate = __section_begin("CodeRelocate"); 69 | uint8* code_relocate_end = __section_end("CodeRelocate"); 70 | 71 | /* Copy functions from ROM to RAM */ 72 | n = code_relocate_end - code_relocate; 73 | while (n--) 74 | *code_relocate_ram++ = *code_relocate++; 75 | } 76 | /********************************************************************/ 77 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/frame_buffer/d4dlcd_frame_buffer_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_frame_buffer_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - frame_buffer lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_FRAMEBUFFER_CFG_H 47 | #define __D4DLCD_FRAMEBUFFER_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCD_FRAMEBUFFER_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/s12_spi_16b/d4dlcdhw_s12_spi_16b_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_s12_spi_16b_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date May-7-2010 41 | * 42 | * @brief D4D driver - s12_spi_16b hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_S12SPI16B_CFG_H 47 | #define __D4DLCDHW_S12SPI16B_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_S12SPI16B_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/ssd1289/d4dlcd_SSD1289_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_SSD1289_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Oct-1-2010 41 | * 42 | * @brief D4D low level driver SSD1289 hardware level LCD header configuration file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_SSD1289_CFG_H 47 | #define __D4DLCD_SSD1289_CFG_H 48 | 49 | /****************************************************************************** 50 | * includes 51 | ******************************************************************************/ 52 | 53 | //#include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 54 | //#include "support_common.h" /* include peripheral declarations and more for CV2 */ 55 | 56 | 57 | /****************************************************************************** 58 | * Constants 59 | ******************************************************************************/ 60 | 61 | 62 | #endif /* __D4DLCD_SSD1289_CFG_H */ 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/template_fb/d4dlcdhw_template_fb_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_template_fb_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - template_fb hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_TEMPLATEFB_CFG_H 47 | #define __D4DLCDHW_TEMPLATEFB_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_TEMPLATEFB_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_hw_interface/template/d4dtchhw_template_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtchhw_template.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Apr-26-2010 41 | * 42 | * @brief D4D driver - template hardware touch screen driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCHHW_TEMPLATE_CFG_H 47 | #define __D4DTCHHW_TEMPLATE_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DTCHHW_TEMPLATE_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/mcf52277_asp/d4dtch_mcf52277_asp_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_mcf52277_asp_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - mcf52277_asp touch screen driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_MDF52277_ASP_CFG_H 47 | #define __D4DTCH_MDF52277_ASP_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DTCH_MDF52277_ASP_CFG_H */ 63 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/TWR_K70/IAR/D4D_Configuration/d4dlcd_frame_buffer_cfg.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_frame_buffer_cfg.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Aug-14-2012 41 | * 42 | * @brief D4D driver - frame_buffer lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_FRAMEBUFFER_CFG_H 47 | #define __D4DLCD_FRAMEBUFFER_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | #define D4DLCDHWFB_DIRECT_MEM_ACCESS 1 62 | #endif /* __D4DLCD_FRAMEBUFFER_CFG_H */ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/prm/Project.lcf: -------------------------------------------------------------------------------- 1 | # Sample Linker Command File for CodeWarrior for ColdFire MCF51JM128 2 | 3 | # Memory ranges 4 | 5 | MEMORY { 6 | code (RX) : ORIGIN = 0x00000410, LENGTH = 0x0001FBF0 7 | userram (RWX) : ORIGIN = 0x00800000, LENGTH = 0x00004000 8 | } 9 | 10 | SECTIONS { 11 | 12 | # Heap and Stack sizes definition 13 | ___heap_size = 0x0400; 14 | ___stack_size = 0x0400; 15 | 16 | # MCF51JM128 Derivative Memory map definitions from linker command files: 17 | # ___RAM_ADDRESS, ___RAM_SIZE, ___FLASH_ADDRESS, ___FLASH_SIZE linker 18 | # symbols must be defined in the linker command file. 19 | 20 | # 16 Kbytes Internal SRAM 21 | ___RAM_ADDRESS = 0x00800000; 22 | ___RAM_SIZE = 0x00004000; 23 | 24 | # 128 KByte Internal Flash Memory 25 | ___FLASH_ADDRESS = 0x00000000; 26 | ___FLASH_SIZE = 0x00020000; 27 | 28 | .userram : {} > userram 29 | .code : {} > code 30 | .text : 31 | { 32 | *(.text) 33 | . = ALIGN (0x4); 34 | *(.rodata) 35 | . = ALIGN (0x4); 36 | ___ROM_AT = .; 37 | ___DATA_ROM = .; 38 | } >> code 39 | 40 | .data : AT(___ROM_AT) 41 | { 42 | ___DATA_RAM = .; 43 | . = ALIGN(0x4); 44 | *(.exception) 45 | . = ALIGN(0x4); 46 | __exception_table_start__ = .; 47 | EXCEPTION 48 | __exception_table_end__ = .; 49 | 50 | ___sinit__ = .; 51 | STATICINIT 52 | __START_DATA = .; 53 | 54 | *(.data) 55 | . = ALIGN (0x4); 56 | __END_DATA = .; 57 | 58 | __START_SDATA = .; 59 | *(.sdata) 60 | . = ALIGN (0x4); 61 | __END_SDATA = .; 62 | 63 | ___DATA_END = .; 64 | __SDA_BASE = .; 65 | . = ALIGN (0x4); 66 | } >> userram 67 | 68 | .bss : 69 | { 70 | ___BSS_START = .; 71 | __START_SBSS = .; 72 | *(.sbss) 73 | . = ALIGN (0x4); 74 | *(SCOMMON) 75 | __END_SBSS = .; 76 | 77 | __START_BSS = .; 78 | *(.bss) 79 | . = ALIGN (0x4); 80 | *(COMMON) 81 | __END_BSS = .; 82 | ___BSS_END = .; 83 | 84 | . = ALIGN(0x4); 85 | } >> userram 86 | 87 | .custom : 88 | { 89 | ___HEAP_START = .; 90 | ___heap_addr = ___HEAP_START; 91 | ___HEAP_END = ___HEAP_START + ___heap_size; 92 | ___SP_END = ___HEAP_END; 93 | ___SP_INIT = ___SP_END + ___stack_size; 94 | 95 | ___mem_limit = ___HEAP_END; 96 | ___stack_safety = 16; 97 | 98 | . = ALIGN (0x4); 99 | } >> userram 100 | 101 | __SP_INIT = ___SP_INIT; 102 | 103 | ___SP_AFTER_RESET = __SP_INIT; 104 | 105 | _romp_at = ___ROM_AT + SIZEOF(.data); 106 | .romp : AT(_romp_at) 107 | { 108 | __S_romp = _romp_at; 109 | WRITEW(___ROM_AT); 110 | WRITEW(ADDR(.data)); 111 | WRITEW(SIZEOF(.data)); 112 | WRITEW(0); 113 | WRITEW(0); 114 | WRITEW(0); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/dragonfire_lcdc/d4dlcdhw_dragonfire_lcdc_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_dragonfire_lcdc_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - dragonfire_lcdc hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H 47 | #define __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H */ 63 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/mqx_mpc5125_diu/d4dlcdhw_mqx_mpc5125_diu_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_mqx_mpc5125_diu_cfg.h.example 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jul-23-2010 41 | * 42 | * @brief D4D driver - dragonfire_lcdc hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H 47 | #define __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | // define here what you need to be configurable 61 | 62 | #endif /* __D4DLCDHW_DRAGONFIRE_LCDC_CFG_H */ 63 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/main.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * $FileName: main.h$ 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * $Version : 3.6.1.0$ 39 | * 40 | * $Date : Aug-14-2012$ 41 | * 42 | * Comments: 43 | * 44 | * This file contains the header information for the eGUI example project. 45 | * 46 | *END************************************************************************/ 47 | 48 | #ifndef __main_h_ 49 | #define __main_h_ 50 | 51 | 52 | #include "d4d.h" 53 | #include "fonts.h" 54 | #include "strings.h" 55 | //#include "pictures.h" 56 | 57 | 58 | 59 | /* Task IDs */ 60 | #define LCD_TASK (9 ) 61 | #define TIME_TASK (10) 62 | #define KEYBOARD_TASK (11) 63 | #define MOUSE_TASK (12) 64 | 65 | #define SCREENSAVER_TIMEOUT_100MS 300 // sets to 30s 66 | 67 | 68 | typedef union 69 | { 70 | uint32_t all; 71 | struct 72 | { 73 | unsigned b25ms :1; 74 | unsigned b50ms : 1; 75 | unsigned b100ms : 1; 76 | unsigned b200ms : 1; 77 | unsigned b400ms : 1; 78 | unsigned b800ms : 1; 79 | unsigned b1600ms : 1; 80 | unsigned b3200ms : 1; 81 | }bits; 82 | }TIME_FLAGS; 83 | 84 | extern TIME_FLAGS time; 85 | extern LWord time100sm_cnt; 86 | extern LWord screenSaverTimeoutPreset; 87 | 88 | #endif /* __main_h_ */ 89 | -------------------------------------------------------------------------------- /D4D/configuration_example/d4d_screen_template.c.template: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4d_screen_template.c.template 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.3.0 39 | * 40 | * @date Jun-12-2012 41 | * 42 | * @brief D4D driver - template of d4d typical screen source file 43 | * 44 | ******************************************************************************/ 45 | 46 | #include "d4d.h" 47 | 48 | 49 | // Standard screen declaration 50 | D4D_DECLARE_STD_SCREEN_BEGIN(screen_template, ScreenTemplate_) 51 | //D4D_DECLARE_SCREEN_OBJECT(object) 52 | D4D_DECLARE_SCREEN_END() 53 | 54 | // One time called screen function in screen initialization proces 55 | static void ScreenTemplate_OnInit() 56 | { 57 | 58 | } 59 | 60 | // Screen on Activate function called with each screen activation 61 | static void ScreenTemplate_OnActivate() 62 | { 63 | 64 | } 65 | 66 | // Screen "Main" function called periodically in each D4D_poll runs 67 | static void ScreenTemplate_OnMain() 68 | { 69 | 70 | } 71 | 72 | 73 | // Screen on DeActivate function called with each screen deactivation 74 | static void ScreenTemplate_OnDeactivate() 75 | { 76 | 77 | } 78 | 79 | // Screen on message function called with each internal massage for this screen 80 | static Byte ScreenTemplate_OnObjectMsg(D4D_MESSAGE* pMsg) 81 | { 82 | D4D_UNUSED(pMsg); 83 | 84 | return 0; 85 | } 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/cr_touch/iic_mqx/mqx_iic_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file mqx_iic_cfg.h.example 35 | * @author Petr Gargulak 36 | * @version 1.0.1.0 37 | * @date Nov-30-2011 38 | * @brief HardI2C configuration 39 | * 40 | ******************************************************************************/ 41 | 42 | #ifndef _MQX_I2C_CFG_H 43 | #define _MQX_I2C_CFG_H 44 | 45 | /****************************************************************************** 46 | * Includes 47 | ******************************************************************************/ 48 | 49 | //#include "MK70F15.h" 50 | 51 | /****************************************************************************** 52 | * Constants 53 | ******************************************************************************/ 54 | #define MQX_I2C_DEV "i2c0:" 55 | /****************************************************************************** 56 | * Macros 57 | ******************************************************************************/ 58 | 59 | /****************************************************************************** 60 | * Types 61 | ******************************************************************************/ 62 | 63 | /****************************************************************************** 64 | * Global functions 65 | ******************************************************************************/ 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/mqx_demo/main.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * $FileName: main.h$ 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * $Version : 3.6.1.0$ 39 | * 40 | * $Date : Aug-14-2012$ 41 | * 42 | * Comments: 43 | * 44 | * This file contains the header information for the eGUI example project. 45 | * 46 | *END************************************************************************/ 47 | 48 | #ifndef __main_h_ 49 | #define __main_h_ 50 | 51 | 52 | #include "d4d.h" 53 | #include "fonts.h" 54 | #include "pictures.h" 55 | #include "d4d_screen_log.h" 56 | 57 | 58 | /* Task IDs */ 59 | #define LCD_TASK 1 60 | #define TIME_TASK 2 61 | 62 | 63 | /* definition for V2 */ 64 | #if D4D_MCU_TYPE == D4D_MCF52 65 | typedef union 66 | { 67 | LWord all; 68 | struct 69 | { 70 | unsigned bdummy : 24; 71 | unsigned b3200ms : 1; 72 | unsigned b1600ms : 1; 73 | unsigned b800ms : 1; 74 | unsigned b400ms : 1; 75 | unsigned b200ms : 1; 76 | unsigned b100ms : 1; 77 | unsigned b50ms : 1; 78 | unsigned b25ms :1; 79 | }bits; 80 | }TIME_FLAGS; 81 | #else 82 | /* definiton for V1 */ 83 | typedef union 84 | { 85 | LWord all; 86 | struct 87 | { 88 | unsigned b25ms :1; 89 | unsigned b50ms : 1; 90 | unsigned b100ms : 1; 91 | unsigned b200ms : 1; 92 | unsigned b400ms : 1; 93 | unsigned b800ms : 1; 94 | unsigned b1600ms : 1; 95 | unsigned b3200ms : 1; 96 | }bits; 97 | }TIME_FLAGS; 98 | #endif 99 | 100 | 101 | 102 | extern TIME_FLAGS time; 103 | extern LWord time100sm_cnt; 104 | 105 | #endif /* __main_h_ */ -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/hidkeyboard.h: -------------------------------------------------------------------------------- 1 | #ifndef __hidkeyboard_h__ 2 | #define __hidkeyboard_h__ 3 | /**HEADER******************************************************************** 4 | * 5 | * Copyright (c) 2008 Freescale Semiconductor; 6 | * All Rights Reserved 7 | * 8 | * Copyright (c) 1989-2008 ARC International; 9 | * All Rights Reserved 10 | * 11 | *************************************************************************** 12 | * 13 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 14 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 17 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 19 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 21 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 22 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 23 | * THE POSSIBILITY OF SUCH DAMAGE. 24 | * 25 | ************************************************************************** 26 | * 27 | * $FileName: hidkeyboard.h$ 28 | * $Version : 3.8.1.0$ 29 | * $Date : Jan-15-2014$ 30 | * 31 | * Comments: 32 | * 33 | * This file contains keyboard-application types and definitions. 34 | * 35 | *END************************************************************************/ 36 | 37 | #ifdef __USB_OTG__ 38 | #include "otgapi.h" 39 | #include "devapi.h" 40 | #else 41 | #include "hostapi.h" 42 | #endif 43 | 44 | 45 | /*************************************** 46 | ** 47 | ** Application-specific definitions 48 | */ 49 | 50 | /* Used to initialize USB controller */ 51 | #define MAX_FRAME_SIZE 1024 52 | #define HOST_CONTROLLER_NUMBER USBCFG_DEFAULT_HOST_CONTROLLER 53 | 54 | #define HID_KEYBOARD_BUFFER_SIZE 8 55 | 56 | #define USB_DEVICE_IDLE (0) 57 | #define USB_DEVICE_ATTACHED (1) 58 | #define USB_DEVICE_CONFIGURED (2) 59 | #define USB_DEVICE_SET_INTERFACE_STARTED (3) 60 | #define USB_DEVICE_INTERFACED (4) 61 | #define USB_DEVICE_SETTING_PROTOCOL (5) 62 | #define USB_DEVICE_INUSE (6) 63 | #define USB_DEVICE_DETACHED (7) 64 | #define USB_DEVICE_OTHER (8) 65 | 66 | /* 67 | ** Following structs contain all states and pointers 68 | ** used by the application to control/operate devices. 69 | */ 70 | 71 | typedef struct usb_keyboard_device_struct { 72 | uint32_t DEV_STATE; /* Attach/detach state */ 73 | _usb_device_instance_handle DEV_HANDLE; 74 | _usb_interface_descriptor_handle INTF_HANDLE; 75 | CLASS_CALL_STRUCT CLASS_INTF; /* Class-specific info */ 76 | } USB_KEYBOARD_DEVICE_STRUCT, * USB_KEYBOARD_DEVICE_STRUCT_PTR; 77 | 78 | 79 | /* Alphabetical list of Function Prototypes */ 80 | 81 | #ifdef __cplusplus 82 | extern "C" { 83 | #endif 84 | 85 | void usb_host_hid_keyboard_recv_callback(_usb_pipe_handle, void *, unsigned char *, uint32_t, USB_STATUS); 86 | void usb_host_hid_keyboard_ctrl_callback(_usb_pipe_handle, void *, unsigned char *, uint32_t, USB_STATUS); 87 | void usb_host_hid_keyboard_event(_usb_device_instance_handle, _usb_interface_descriptor_handle, uint32_t); 88 | 89 | #ifdef __cplusplus 90 | } 91 | #endif 92 | 93 | 94 | #endif 95 | 96 | /* EOF */ 97 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWR_K60D100M/BareMetal/IAR/src/cpu/dma_channels.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: dma_channels.h 3 | * Purpose: DMA request macros for use on Kinetis processors. 4 | * This file gives default DMA channel assignments 5 | * for all of the possible Kinetis module DMA requests. 6 | * 7 | * 8 | * Notes: There are more DMA requests than DMA channels, so 9 | * care should be taken to make sure that DMA channel 10 | * assignments are unique for the modules that are 11 | * being used at any time. 12 | */ 13 | 14 | #ifndef _DMA_CHANNELS_H 15 | #define _DMA_CHANNELS_H 16 | 17 | /********************************************************************/ 18 | /* NOTE: There are more DMA requests than DMA channels, so 19 | * care should be taken to make sure that DMA channel 20 | * assignments are unique for the modules that are 21 | * being used at any time. 22 | * 23 | * It is recommended that you read the appropriate DMAMUX_CHCFGn 24 | * register before updating it to verify it is 0x0. If the 25 | * DMAMUX_CHCFGn register is not zero, then that indicates the 26 | * selected DMA channel might already be in use by another peripheral 27 | * (a more specific test would be to look for DMAMUX_CHCFGn[ENBL] set). 28 | * The module's DMA configuration routine can return an error 29 | * when this situation is detected. 30 | */ 31 | 32 | 33 | /* Default DMA channel assignments and module request macros */ 34 | 35 | /* UARTs */ 36 | #define DMA_UART0RX_CH 0 37 | #define DMA_UART0TX_CH 1 38 | 39 | #define DMA_UART1RX_CH 2 40 | #define DMA_UART1TX_CH 3 41 | 42 | #define DMA_UART2RX_CH 10 43 | #define DMA_UART2TX_CH 11 44 | 45 | #define DMA_UART3RX_CH 12 46 | #define DMA_UART3TX_CH 13 47 | 48 | #define DMA_UART4RX_CH 6 49 | #define DMA_UART4TX_CH 7 50 | 51 | #define DMA_UART5RX_CH 8 52 | #define DMA_UART5TX_CH 9 53 | 54 | /* SSI/SAI */ 55 | #define DMA_SSI0RX_CH 4 56 | #define DMA_SSI0TX_CH 5 57 | 58 | /* DSPIs */ 59 | #define DMA_DSPI0RX_CH 6 60 | #define DMA_DSPI0TX_CH 7 61 | 62 | #define DMA_DSPI1RX_CH 8 63 | #define DMA_DSPI1TX_CH 9 64 | 65 | #define DMA_DSPI2RX_CH 14 66 | #define DMA_DSPI2TX_CH 15 67 | 68 | /* I2Cs */ 69 | #define DMA_I2C0_CH 7 70 | #define DMA_I2C1_CH 2 71 | 72 | /* FTMs */ 73 | #define DMA_FTM0CH0_CH 5 74 | #define DMA_FTM0CH1_CH 6 75 | #define DMA_FTM0CH2_CH 3 76 | #define DMA_FTM0CH3_CH 4 77 | #define DMA_FTM0CH4_CH 12 78 | #define DMA_FTM0CH5_CH 13 79 | #define DMA_FTM0CH6_CH 14 80 | #define DMA_FTM0CH7_CH 15 81 | 82 | #define DMA_FTM1CH0_CH 10 83 | #define DMA_FTM1CH1_CH 11 84 | 85 | #define DMA_FTM2CH0_CH 0 86 | #define DMA_FTM2CH1_CH 1 87 | 88 | /* Ethernet timers */ 89 | #define DMA_ENETTMR0_CH 4 90 | #define DMA_ENETTMR1_CH 8 91 | #define DMA_ENETTMR2_CH 0 92 | #define DMA_ENETTMR3_CH 15 93 | 94 | /* ADCs */ 95 | #define DMA_ADC0_CH 12 96 | #define DMA_ADC1_CH 3 97 | 98 | /* HSCMPs */ 99 | #define DMA_HSCMP0_CH 13 100 | #define DMA_HSCMP1_CH 2 101 | #define DMA_HSCMP2_CH 9 102 | 103 | /* 12-bit DAC */ 104 | #define DMA_12bDAC0_CH 14 105 | 106 | /* CMT */ 107 | #define DMA_CMT_CH 5 108 | 109 | /* PDB */ 110 | #define DMA_PDB_CH 10 111 | 112 | /* GPIO Ports */ 113 | #define DMA_GPIOPORTA_CH 15 114 | #define DMA_GPIOPORTB_CH 0 115 | #define DMA_GPIOPORTC_CH 1 116 | #define DMA_GPIOPORTD_CH 11 117 | #define DMA_GPIOPORTE_CH 8 118 | 119 | /********************************************************************/ 120 | 121 | #endif /* _DMA_CHANNELS_H */ 122 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/template/d4dtch_template.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_template.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Apr-30-2010 41 | * 42 | * @brief D4D driver - template touch screen driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_TEMPLATE_H 47 | #define __D4DTCH_TEMPLATE_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_TCH) == d4dtch_template_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dtch_template_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global functions 74 | ******************************************************************************/ 75 | 76 | #endif 77 | #endif /* __D4DTCH_TEMPLATE_H */ 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/template/d4dlcdhw_template.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_template.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Apr-26-2010 41 | * 42 | * @brief D4D driver - template hardware lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_TEMPLATE_H 47 | #define __D4DLCDHW_TEMPLATE_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dlcdhw_template_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global functions 74 | ******************************************************************************/ 75 | 76 | #endif 77 | #endif /* __D4DLCDHW_TEMPLATE_H */ 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_hw_interface/template/d4dtchhw_template.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtchhw_template.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.3.0 39 | * 40 | * @date Dec-7-2011 41 | * 42 | * @brief D4D driver - template hardware touch screen driver header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCHHW_TEMPLATE_H 47 | #define __D4DTCHWH_TEMPLATE_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_TCH_HW) == d4dtchhw_template_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dtchhw_template_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global functions 74 | ******************************************************************************/ 75 | 76 | #endif 77 | #endif /* __D4DTCHHW_TEMPLATE_H */ 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/template_fb/d4dlcdhw_template_fb.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_template_fb.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jun-29-2010 41 | * 42 | * @brief D4D driver - template_fb hardware lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_TEMPLATEFB_H 47 | #define __D4DLCDHW_TEMPLATEFB_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_template_fb_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dlcdhw_template_fb_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global functions 74 | ******************************************************************************/ 75 | 76 | #endif 77 | #endif /* __D4DLCDHW_TEMPLATEFB_H */ 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/fsa506/d4dlcd_FSA506.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_FSA506.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.10.0 39 | * 40 | * @date Jun-4-2010 41 | * 42 | * @brief D4D driver - fsa506 lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_FSA506_H 47 | #define __D4DLCD_FSA506_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_fsa506_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dlcd_fsa506_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | #ifdef D4D_LLD_LCD_HW 73 | extern const D4DLCDHW_FUNCTIONS D4D_LLD_LCD_HW; 74 | #endif 75 | 76 | /****************************************************************************** 77 | * Global functions 78 | ******************************************************************************/ 79 | 80 | #endif 81 | #endif /* __D4DLCD_FSA506_H */ 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/cr_touch/iic/hw_iic_cfg.h.example: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file hw_iic_cfg.h.example 35 | * @author Pavel Michlicek, Pavel Krenek 36 | * @version 1.0.1.0 37 | * @date Nov-24-2011 38 | * @brief HardI2C configuration 39 | * 40 | ******************************************************************************/ 41 | 42 | #ifndef _HW_I2C_CFG_H 43 | #define _HW_I2C_CFG_H 44 | 45 | /****************************************************************************** 46 | * Includes 47 | ******************************************************************************/ 48 | 49 | #include "MK70F15.h" 50 | 51 | /****************************************************************************** 52 | * Constants 53 | ******************************************************************************/ 54 | #define I2C_BASE I2C0_BASE_PTR 55 | 56 | #define I2C_FREQ_REG 0x17 // 400Khz for 100MHz 57 | 58 | #define I2C_FREQ_BUS 50000000u 59 | 60 | 61 | #define I2C_SDA_PCR PORTE_PCR18 62 | #define I2C_SCL_PCR PORTE_PCR19 63 | 64 | #define I2C_SCL 19 65 | #define I2C_SCL_PORT GPIOE_PDOR // Data output register 66 | #define I2C_SCL_DDR GPIOE_PDDR // Output enable register 67 | 68 | #define I2C_SDA 18 69 | #define I2C_SDA_PORT GPIOE_PDOR // Data output register 70 | #define I2C_SDA_DDR GPIOE_PDDR // Output enable register 71 | /****************************************************************************** 72 | * Macros 73 | ******************************************************************************/ 74 | 75 | /****************************************************************************** 76 | * Types 77 | ******************************************************************************/ 78 | 79 | /****************************************************************************** 80 | * Global functions 81 | ******************************************************************************/ 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/lgdp4531/d4dlcd_lgdp4531.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_lgdp4531.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.1.0 39 | * 40 | * @date Jul-23-2010 41 | * 42 | * @brief D4D driver - lgdp4531 lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_LGDP4531_H 47 | #define __D4DLCD_LGDP4531_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_lgdp4531_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dlcd_lgdp4531_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | #ifdef D4D_LLD_LCD_HW 73 | extern const D4DLCDHW_FUNCTIONS D4D_LLD_LCD_HW; 74 | #endif 75 | 76 | /****************************************************************************** 77 | * Global functions 78 | ******************************************************************************/ 79 | 80 | #endif 81 | #endif /* __D4DLCD_LGDP4531_H */ 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/template/d4dlcd_template.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_template.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Jun-4-2010 41 | * 42 | * @brief D4D driver - template lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_TEMPLATE_H 47 | #define __D4DLCD_TEMPLATE_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_template_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dlcd_template_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****************************************************************************** 61 | * Types 62 | ******************************************************************************/ 63 | 64 | /****************************************************************************** 65 | * Macros 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Global variables 70 | ******************************************************************************/ 71 | 72 | #ifdef D4D_LLD_LCD_HW 73 | extern const D4DLCDHW_FUNCTIONS D4D_LLD_LCD_HW; 74 | #endif 75 | 76 | /****************************************************************************** 77 | * Global functions 78 | ******************************************************************************/ 79 | 80 | #endif 81 | #endif /* __D4DLCD_TEMPLATE_H */ 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/common_drivers/d4dlcdhw_common.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_common.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Jun-28-2010 41 | * 42 | * @brief D4D driver - common low level driver header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DRVHW_COMMON_H 47 | #define __D4DRVHW_COMMON_H 48 | 49 | /****************************************************************************** 50 | * Includes 51 | ******************************************************************************/ 52 | 53 | /****************************************************************************** 54 | * Macros 55 | ******************************************************************************/ 56 | 57 | /****************************************************************************** 58 | * Constants 59 | ******************************************************************************/ 60 | 61 | /****************************************************************************** 62 | * Types 63 | ******************************************************************************/ 64 | 65 | /****************************************************************************** 66 | * Macros 67 | ******************************************************************************/ 68 | 69 | /****************************************************************************** 70 | * Global variables 71 | ******************************************************************************/ 72 | 73 | /****************************************************************************** 74 | * Global functions 75 | ******************************************************************************/ 76 | void D4DLCD_Delay_ms_Common(unsigned short period); 77 | void D4DLCDHW_CommonInit(void); 78 | #endif /* __D4DRVHW_COMMON_H */ 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/TWR_K70/IAR/D4D_Configuration/d4dlcdhw_k70_lcdc_cfg.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_k70_lcdc_cfg.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.5.0 39 | * 40 | * @date Jan-14-2014 41 | * 42 | * @brief D4D driver - k70_lcdc hardware lcd driver configuration header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_K70_LCDC_CFG_H 47 | #define __D4DLCDHW_K70_LCDC_CFG_H 48 | 49 | 50 | /****************************************************************************** 51 | * includes 52 | ******************************************************************************/ 53 | // include here what the driver need for run for example "derivative.h" 54 | // #include "derivative.h" /* include peripheral declarations and more for S08 and CV1 */ 55 | // #include "MK70F15.h" 56 | #include 57 | #include 58 | #include 59 | /****************************************************************************** 60 | * Constants 61 | ******************************************************************************/ 62 | 63 | #define D4D_LLD_LCD_HW_K70LCDC d4dlcdhw_k70_lcdc_twr_rgbB 64 | 65 | 66 | #define D4DLCDHWFB_X_MAX 480 67 | #define D4DLCDHWFB_Y_MAX 272 68 | #define D4DLCDHWFB_BPP_BYTE 4 69 | #define D4DLCDHWFB_BPP BPP24 70 | #define D4DLCDHWFB_MIRROWED 0 71 | #define D4DLCDHWFB_CACHE_FLUSH_ENABLE 1 72 | #define D4DLCDHWFB_DOUBLE_BUFFER 1 73 | #define D4DLCDHWFB_DMA_ENABLE 1 74 | #define D4DLCDHWFB_DMA_CHANNEL 0 75 | 76 | //#define D4DLCDHWFB_DMA_CHPRI ((D4DLCDHWFB_DMA_CHANNEL & 0xf)) 77 | 78 | //#define D4DLCDHWFB_START_ADDRESS 0x70400000 79 | 80 | //#define LCDC_DEBUG 0 81 | 82 | // define here what you need to be configurable 83 | 84 | #endif /* __D4DLCDHW_K70_LCDC_CFG_H */ -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/ssd1289/d4dlcd_SSD1289.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_SSD1289.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.22.0 39 | * 40 | * @date Apr-28-2011 41 | * 42 | * @brief D4D driver SSD1289 hardware level LCD header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DRV_SSD1289_H 47 | #define __D4DRV_SSD1289_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_ssd1289_ID) 50 | 51 | //#include "d4dlcd_SSD1289_cfg.h" 52 | 53 | /****************************************************************************** 54 | * Includes 55 | ******************************************************************************/ 56 | 57 | /****************************************************************************** 58 | * Constants 59 | ******************************************************************************/ 60 | 61 | #define D4DLCD_PIXEL_COUNT (D4D_SCREEN_SIZE_SHORTER_SIDE * D4D_SCREEN_SIZE_LONGER_SIDE) 62 | 63 | /****************************************************************************** 64 | * Types 65 | ******************************************************************************/ 66 | 67 | /****************************************************************************** 68 | * Macros 69 | ******************************************************************************/ 70 | 71 | /****************************************************************************** 72 | * Global variables 73 | ******************************************************************************/ 74 | 75 | #ifdef D4D_LLD_LCD_HW 76 | extern const D4DLCDHW_FUNCTIONS D4D_LLD_LCD_HW; 77 | #endif 78 | 79 | /****************************************************************************** 80 | * Global functions 81 | ******************************************************************************/ 82 | 83 | #endif 84 | #endif /* __D4DRV_SSD1289_H */ 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_Demo/common_sources/hidmouse.h: -------------------------------------------------------------------------------- 1 | #ifndef __hidmouse_h__ 2 | #define __hidmouse_h__ 3 | /**HEADER******************************************************************** 4 | * 5 | * Copyright (c) 2008 Freescale Semiconductor; 6 | * All Rights Reserved 7 | * 8 | * Copyright (c) 1989-2008 ARC International; 9 | * All Rights Reserved 10 | * 11 | *************************************************************************** 12 | * 13 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 14 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 | * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 17 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 19 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 21 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 22 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 23 | * THE POSSIBILITY OF SUCH DAMAGE. 24 | * 25 | ************************************************************************** 26 | * 27 | * $FileName: hidmouse.h$ 28 | * $Version : 3.8.1.0$ 29 | * $Date : Jan-15-2014$ 30 | * 31 | * Comments: 32 | * 33 | * This file contains mouse-application types and definitions. 34 | * 35 | *END************************************************************************/ 36 | 37 | #ifdef __USB_OTG__ 38 | #include "otgapi.h" 39 | #include "devapi.h" 40 | #else 41 | #include "hostapi.h" 42 | #endif 43 | 44 | #include "bsp.h" 45 | #include "psp.h" 46 | 47 | /*************************************** 48 | ** 49 | ** Application-specific definitions 50 | */ 51 | 52 | /* Used to initialize USB controller */ 53 | #define MAX_FRAME_SIZE 1024 54 | #define HOST_CONTROLLER_NUMBER USBCFG_DEFAULT_HOST_CONTROLLER 55 | 56 | #define HID_MOUSE_BUFFER_SIZE 4 57 | 58 | #define USB_DEVICE_IDLE (0) 59 | #define USB_DEVICE_ATTACHED (1) 60 | #define USB_DEVICE_CONFIGURED (2) 61 | #define USB_DEVICE_SET_INTERFACE_STARTED (3) 62 | #define USB_DEVICE_INTERFACED (4) 63 | #define USB_DEVICE_SETTING_PROTOCOL (5) 64 | #define USB_DEVICE_INUSE (6) 65 | #define USB_DEVICE_DETACHED (7) 66 | #define USB_DEVICE_OTHER (8) 67 | 68 | 69 | 70 | /* 71 | ** Following structs contain all states and void *s 72 | ** used by the application to control/operate devices. 73 | */ 74 | 75 | typedef struct usb_mouse_device_struct { 76 | uint32_t DEV_STATE; /* Attach/detach state */ 77 | _usb_device_instance_handle DEV_HANDLE; 78 | _usb_interface_descriptor_handle INTF_HANDLE; 79 | CLASS_CALL_STRUCT CLASS_INTF; /* Class-specific info */ 80 | } USB_MOUSE_DEVICE_STRUCT, * USB_MOUSE_DEVICE_STRUCT_PTR; 81 | 82 | 83 | /* Alphabetical list of Function Prototypes */ 84 | 85 | #ifdef __cplusplus 86 | extern "C" { 87 | #endif 88 | 89 | #if 0 90 | void otg_service(_usb_otg_handle, uint32_t); 91 | #endif 92 | 93 | void usb_host_hid_mouse_recv_callback(_usb_pipe_handle, void *, uint8_t *, uint32_t, 94 | uint32_t); 95 | void usb_host_hid_mouse_ctrl_callback(_usb_pipe_handle, void *, uint8_t *, uint32_t, 96 | uint32_t); 97 | void usb_host_hid_mouse_event(_usb_device_instance_handle, 98 | _usb_interface_descriptor_handle, uint32_t); 99 | 100 | #ifdef __cplusplus 101 | } 102 | #endif 103 | 104 | 105 | #endif 106 | 107 | /* EOF */ 108 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/resistive_mqx/d4dtch_resistive_mqx.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_resistive_mqx.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Mar-11-2011 41 | * 42 | * @brief D4D driver - resistive touch screen driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_RESISTIVE_MQX_H 47 | #define __D4DTCH_RESISTIVE_MQX_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_TCH) == d4dtch_resistive_mqx_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | // #include "d4dtch_resistive_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****** Algorithm constants *****/ 61 | #ifndef AVERAGE_BUFF_LEN 62 | #define AVERAGE_BUFF_LEN 6 63 | #endif 64 | 65 | /****************************************************************************** 66 | * Types 67 | ******************************************************************************/ 68 | 69 | /****************************************************************************** 70 | * Macros 71 | ******************************************************************************/ 72 | 73 | /****************************************************************************** 74 | * Global variables 75 | ******************************************************************************/ 76 | 77 | /****************************************************************************** 78 | * Global functions 79 | ******************************************************************************/ 80 | 81 | #endif 82 | #endif /* __D4DTCH_RESISTIVE_MQX_H */ 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/k70_lcdc/twr_rgb_rev_b/d4dlcdhw_twrrgbb.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_twrrgbb.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.3.0 39 | * 40 | * @date Aug-16-2012 41 | * 42 | * @brief D4D driver - k70_lcdc hardware lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_K70_LCDCTWRRGBB_H 47 | #define __D4DLCDHW_K70_LCDCTWRRGBB_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD_HW_K70LCDC) == d4dlcdhw_k70_lcdc_twr_rgbB_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | 55 | /****************************************************************************** 56 | * Constants 57 | ******************************************************************************/ 58 | 59 | 60 | #ifndef D4DLCDHWFB_PANEL_CLKDIV 61 | #define D4DLCDHWFB_PANEL_CLKDIV 6 62 | #endif 63 | 64 | /****************************************************************************** 65 | * Types 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Macros 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global variables 74 | ******************************************************************************/ 75 | 76 | /****************************************************************************** 77 | * Global functions 78 | ******************************************************************************/ 79 | 80 | 81 | 82 | /************************* Structure/Union Data types ************************/ 83 | 84 | 85 | #endif 86 | #endif /* __D4DLCDHW_K70_LCDCTWRRGBB_H */ 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_controllers_drivers/frame_buffer/d4dlcd_frame_buffer.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcd_frame_buffer.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Aug-30-2010 41 | * 42 | * @brief D4D driver - frame_buffer lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCD_FRAMEBUFFER_H 47 | #define __D4DLCD_FRAMEBUFFER_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD) == d4dlcd_frame_buffer_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | //#include "d4dlcd_frame_buffer_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | #ifndef D4DLCDHWFB_DIRECT_MEM_ACCESS 61 | #define D4DLCDHWFB_DIRECT_MEM_ACCESS 0 62 | #endif 63 | /****************************************************************************** 64 | * Types 65 | ******************************************************************************/ 66 | 67 | /****************************************************************************** 68 | * Macros 69 | ******************************************************************************/ 70 | 71 | /****************************************************************************** 72 | * Global variables 73 | ******************************************************************************/ 74 | 75 | #ifdef D4D_LLD_LCD_HW 76 | extern const D4DLCDHWFB_FUNCTIONS D4D_LLD_LCD_HW; 77 | #endif 78 | 79 | /****************************************************************************** 80 | * Global functions 81 | ******************************************************************************/ 82 | 83 | #endif 84 | #endif /* __D4DLCD_FRAMEBUFFER_H */ 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/touch_screen/touch_screen_drivers/resistive/d4dtch_resistive.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dtch_resistive.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.10.0 39 | * 40 | * @date Oct-15-2012 41 | * 42 | * @brief D4D driver - resistive touch screen driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DTCH_RESISTIVE_H 47 | #define __D4DTCH_RESISTIVE_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_TCH) == d4dtch_resistive_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | #include "d4dtch_resistive_cfg.h" 55 | 56 | /****************************************************************************** 57 | * Constants 58 | ******************************************************************************/ 59 | 60 | /****** Algorithm constants *****/ 61 | #ifndef AVERAGE_BUFF_LEN 62 | #define AVERAGE_BUFF_LEN 6 63 | #endif 64 | 65 | #ifndef DELAY_NOP_CNT 66 | #define DELAY_NOP_CNT 32 67 | #endif 68 | 69 | 70 | /****************************************************************************** 71 | * Types 72 | ******************************************************************************/ 73 | 74 | /****************************************************************************** 75 | * Macros 76 | ******************************************************************************/ 77 | 78 | /****************************************************************************** 79 | * Global variables 80 | ******************************************************************************/ 81 | 82 | /****************************************************************************** 83 | * Global functions 84 | ******************************************************************************/ 85 | 86 | #endif 87 | #endif /* __D4DTCH_RESISTIVE_H */ 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/bm_demo/main.c: -------------------------------------------------------------------------------- 1 | /**HEADER******************************************************************** 2 | * 3 | * Copyright (c) 2008 Freescale Semiconductor; 4 | * All Rights Reserved 5 | * 6 | * Copyright (c) 1989-2008 ARC International; 7 | * All Rights Reserved 8 | * 9 | *************************************************************************** 10 | * 11 | * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 12 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 13 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 14 | * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 15 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 16 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 17 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 18 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 19 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 20 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 21 | * THE POSSIBILITY OF SUCH DAMAGE. 22 | * 23 | ************************************************************************** 24 | * 25 | * $FileName: main.c$ 26 | * $Version : 1.0$ 27 | * $Date : Mar-19-2015$ 28 | * 29 | * Comments: 30 | * 31 | * This file contains the source for the eGUI example program. 32 | * 33 | *END************************************************************************/ 34 | 35 | // Jumper settings on LCD story - TWR-LCD-REV A: 36 | 37 | // TWRK60N512 + TWR_LCD SW1 configuration: 38 | // POS: 1 2 3 4 5 6 7 8 39 | // SPI: 0 1 1 1 1 1 1 0 40 | // FLEX: 1 0 1 1 1 1 1 0 41 | 42 | #include "main.h" 43 | #include 44 | #include "common.h" 45 | #include "mcg.h" 46 | #include "sim.h" 47 | #include "pit.h" 48 | 49 | D4D_EXTERN_SCREEN(screen_entry) 50 | 51 | TIME_FLAGS time; 52 | LWord time100sm_cnt = 0; 53 | 54 | 55 | /*PIT CallBack*--------------------------------------- 56 | * 57 | * Function Name : Time_event25ms 58 | * Comments : 59 | * This function do: periodical events in 25ms 60 | * 61 | *END*-----------------------------------------------------*/ 62 | static void Time_event25ms(void) 63 | { 64 | static Byte actual_time = 0; 65 | TIME_FLAGS t_flags; 66 | 67 | D4D_TimeTickPut(); 68 | 69 | /* set the internal time flags */ 70 | actual_time++; 71 | t_flags.all = (LWord)(actual_time ^ (actual_time - 1)); 72 | 73 | time.all |= t_flags.all; 74 | 75 | if(t_flags.bits.b50ms) 76 | D4D_CheckTouchScreen(); 77 | 78 | if(t_flags.bits.b100ms) 79 | time100sm_cnt++; 80 | } 81 | 82 | /*TASK*----------------------------------------------------- 83 | * 84 | * Task Name : main 85 | * Comments : 86 | * Example application of eGUI display 87 | * 88 | *END*-----------------------------------------------------*/ 89 | void main(void) 90 | { 91 | SIM_Init (SIM_MODULE_CONFIG); 92 | PLL_Init (CORE_CLK_MHZ, REF_CLK); 93 | printf("Hello from eGUI demo\n\r"); 94 | 95 | // Init eGUI 96 | if(!D4D_Init(&screen_entry)) 97 | { 98 | // D4D initialization failed 99 | printf("eGUI/D4D initialization failed\n\r"); 100 | } 101 | 102 | // Setup right screen orientation 103 | D4D_SetOrientation(D4D_ORIENT_LANDSCAPE); 104 | 105 | // Force calibration screen 106 | D4D_CalibrateTouchScreen(); 107 | 108 | // Init periodical timer 109 | PIT_Init(PIT0, PIT_CH_CONFIG, (uint32)(0.025 / (1.0/D4D_MCU_BUS_CLOCK)), 8, Time_event25ms); 110 | PIT_Enable(); 111 | 112 | // Enable interrupts 113 | EnableInterrupts; 114 | 115 | for(;;) 116 | { 117 | // Periodical call of the eGUI handler 118 | D4D_Poll(); 119 | } 120 | } 121 | 122 | /* EOF */ 123 | -------------------------------------------------------------------------------- /D4D/low_level_drivers/LCD/lcd_hw_interface/k70_lcdc/twr_rgb_rev_a/d4dlcdhw_twrrgba.h: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * 3 | * Copyright 2014 by Petr Gargulak. eGUI Community. 4 | * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc. 5 | * 6 | *************************************************************************** 7 | * This program is free software: you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License Version 3 9 | * or later (the "LGPL"). 10 | * 11 | * As a special exception, the copyright holders of the eGUI project give you 12 | * permission to link the eGUI sources with independent modules to produce an 13 | * executable, regardless of the license terms of these independent modules, 14 | * and to copy and distribute the resulting executable under terms of your 15 | * choice, provided that you also meet, for each linked independent module, 16 | * the terms and conditions of the license of that module. 17 | * An independent module is a module which is not derived from or based 18 | * on this library. 19 | * If you modify the eGUI sources, you may extend this exception 20 | * to your version of the eGUI sources, but you are not obligated 21 | * to do so. If you do not wish to do so, delete this 22 | * exception statement from your version. 23 | * 24 | * This program is distributed in the hope that it will be useful, 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27 | * 28 | * You should have received a copy of the GNU General Public License 29 | * and the GNU Lesser General Public License along with this program. 30 | * If not, see . 31 | * 32 | ***************************************************************************//*! 33 | * 34 | * @file d4dlcdhw_twrrgba.h 35 | * 36 | * @author Petr Gargulak 37 | * 38 | * @version 0.0.2.0 39 | * 40 | * @date Dec-7-2011 41 | * 42 | * @brief D4D driver - k70_lcdc hardware lcd driver function header file 43 | * 44 | *******************************************************************************/ 45 | 46 | #ifndef __D4DLCDHW_K70_LCDCTWRRGBA_H 47 | #define __D4DLCDHW_K70_LCDCTWRRGBA_H 48 | 49 | #if (D4D_MK_STR(D4D_LLD_LCD_HW_K70LCDC) == d4dlcdhw_k70_lcdc_twr_rgbA_ID) 50 | 51 | /****************************************************************************** 52 | * Includes 53 | ******************************************************************************/ 54 | 55 | /****************************************************************************** 56 | * Constants 57 | ******************************************************************************/ 58 | 59 | 60 | #ifndef D4DLCDHWFB_PANEL_CLKDIV 61 | #define D4DLCDHWFB_PANEL_CLKDIV 3 62 | #endif 63 | 64 | /****************************************************************************** 65 | * Types 66 | ******************************************************************************/ 67 | 68 | /****************************************************************************** 69 | * Macros 70 | ******************************************************************************/ 71 | 72 | /****************************************************************************** 73 | * Global variables 74 | ******************************************************************************/ 75 | 76 | /****************************************************************************** 77 | * Global functions 78 | ******************************************************************************/ 79 | unsigned char D4DLCDHW_Init_K70LCDC_Panel(void); 80 | 81 | 82 | /************************* Structure/Union Data types ************************/ 83 | 84 | 85 | #endif 86 | #endif /* __D4DLCDHW_K70_LCDCTWRRGBA_H */ 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /_Official_Demos/EGUI_D4D_Demo/TWRLCD_MCF51JM128/BareMetal/CW_6_3/CFV1_BDM_P&E_Multilink_CyclonePro.ini: -------------------------------------------------------------------------------- 1 | [Environment Variables] 2 | GENPATH={Project}Sources;{Compiler}lib\cfv1c\device\src;{Compiler}lib\cfv1c\device\include;{Compiler}lib\cfv1c\device\asm_include;{Compiler}\ColdFire_Support\Runtime\Runtime_ColdFire\Source;{Compiler}ColdFire_Support\Runtime\(Runtime_Common)\MWRuntime;{Compiler}ColdFire_Support\Runtime\(Runtime_Common);{Compiler}ColdFire_Support\msl\MSL_C\MSL_ColdFire\Src;{Compiler}ColdFire_Support\msl\MSL_C\MSL_ColdFire\Lib;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common\Src;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Src;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Math\Double_precision;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Math\Single_precision;{Compiler}ColdFire_Support\msl\MSL_C++\MSL_ColdFire\Lib;{Compiler}ColdFire_Support\msl\MSL_C++\MSL_Common\Src;{Compiler}ColdFire_Support\msl\MSL_C++\MSL_Precompiled_Headers\Src;{Compiler}ColdFire_Support\msl\MSL_Extras\MSL_Common\Src 3 | LIBPATH={Compiler}lib\cfv1c\device\include;{Compiler}ColdFire_Support\msl\MSL_C\MSL_ColdFire\Include;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common\Include;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Include;{Compiler}ColdFire_Support\msl\MSL_C++\MSL_ColdFire\Include;{Compiler}ColdFire_Support\msl\MSL_C++\MSL_Common\Include;{Compiler}ColdFire_Support\msl\MSL_C\MSL_Common_Embedded\Math\Include;{Compiler}ColdFire_Support\msl\MSL_Extras\MSL_Common\Include;{Compiler}ColdFire_Support\msl\MSL_Extras\MSL_Common\Include\sys; 4 | OBJPATH={Project}bin 5 | TEXTPATH={Project}bin 6 | ABSPATH={Project}bin 7 | 8 | [HI-WAVE] 9 | Target=CFICDCYCLMULT 10 | CPU=ColdFire 11 | Layout=C_layout.hwl 12 | LoadDialogOptions=AUTOERASEANDFLASH RUNANDSTOPAFTERLOAD="main" 13 | MainFrame=2,3,-1,-1,-1,-1,125,125,1565,975 14 | TOOLBAR=57600 57601 32795 0 57635 57634 57637 0 57671 57669 0 32777 32776 32782 32780 32781 32778 0 32806 15 | 16 | 17 | 18 | [CFICDCYCLMULT] 19 | COMSETTINGS=SETCOMM DRIVER NOPROTOCOL NOPERIODICAL 20 | HOST_IO_SUPPORT=0 21 | 22 | 23 | [CFMultilinkCyclonePro_GDI_SETTINGS] 24 | MCUID=0x7003 25 | CMDFILE0=CMDFILE STARTUP ON ".\cmd\CFV1_BDM_P&E_Multilink_CyclonePro_startup.cmd" 26 | CMDFILE1=CMDFILE RESET ON ".\cmd\CFV1_BDM_P&E_Multilink_CyclonePro_reset.cmd" 27 | CMDFILE2=CMDFILE PRELOAD ON ".\cmd\CFV1_BDM_P&E_Multilink_CyclonePro_preload.cmd" 28 | CMDFILE3=CMDFILE POSTLOAD ON ".\cmd\CFV1_BDM_P&E_Multilink_CyclonePro_postload.cmd" 29 | CMDFILE4=CMDFILE VPPON ON "vppon.cmd" 30 | CMDFILE5=CMDFILE VPPOFF ON "vppoff.cmd" 31 | DBG0=DBG GENERAL DISARM_ON PROTECT_OFF ANALYZE_ON STEPATRUN_ON 32 | DBG1=DBG PREDEFINED SELECT 0 33 | CF_V1_DBG_TRIGGER_A=RangeAllowed:0 AccessSizeCompareAllowed:0 DataCompareAllowed:0 Disabled:0 AccessSize:4 Range:0 OutsideRange:0 DataToCompare:0 DataToCompareSize:0 DataToCompareMode:-1 EnableMask: 0 TriggerMask:0 34 | CF_V1_DBG_TRIGGER_B=RangeAllowed:0 AccessSizeCompareAllowed:0 DataCompareAllowed:0 Disabled:0 AccessSize:4 Range:0 OutsideRange:0 DataToCompare:0 DataToCompareSize:0 DataToCompareMode:-1 EnableMask: 0 TriggerMask:0 35 | CF_V1_DBG_TRIGGER_C=RangeAllowed:1 AccessSizeCompareAllowed:1 DataCompareAllowed:0 Disabled:0 AccessSize:4 Range:0 OutsideRange:0 DataToCompare:0 DataToCompareSize:0 DataToCompareMode:-1 EnableMask: 0 TriggerMask:0 36 | DBG2= 37 | NV_PARAMETER_FILE=C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.3\prog\FPP\mcu7003.fpp 38 | NV_SAVE_WSP=0 39 | NV_AUTO_ID=1 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | [STARTUP] 54 | trim_reference_target_newvalue=3125000 55 | trim_reference_target_override=0 56 | CPUTARGETTYPE=0 57 | check_and_fix_if_secure_enable_flag=1 58 | IO_DELAY_SET=0 59 | USE_CYCLONEPRO_RELAYS=1 60 | CyclonePro_poweroffonexit=0 61 | CyclonePro_currentvoltage=255 62 | CyclonePro_PowerDownDelay=250 63 | CyclonePro_PowerUpDelay=250 64 | IO_DELAY_CNT=28 65 | PCI_DELAY=0 66 | RESET_DELAY=0 67 | PORT=21 68 | interface_selection=0 69 | SHOWDIALOG=1 70 | 71 | 72 | [PORT] 73 | IP= 74 | --------------------------------------------------------------------------------