├── Docu ├── STM8_Devices.ods ├── Images │ ├── STM8_logo.jpg │ ├── muBoard.jpg │ ├── stm8af_discovery.png │ ├── stm8al_discovery.png │ ├── stm8l_discovery.jpg │ └── stm8s_discovery.jpg └── README.md ├── Library ├── Libraries │ ├── FatFS_0.13 │ │ ├── documents │ │ │ └── res │ │ │ │ ├── f1.png │ │ │ │ ├── f2.png │ │ │ │ ├── f3.png │ │ │ │ ├── f4.png │ │ │ │ ├── f5.png │ │ │ │ ├── f6.png │ │ │ │ ├── f7.png │ │ │ │ ├── funcs.png │ │ │ │ ├── mkfs.xls │ │ │ │ ├── layers.png │ │ │ │ ├── layers1.png │ │ │ │ ├── layers2.png │ │ │ │ ├── layers3.png │ │ │ │ ├── mkfatimg.zip │ │ │ │ ├── modules.png │ │ │ │ ├── rwtest1.png │ │ │ │ ├── rwtest2.png │ │ │ │ ├── rwtest3.png │ │ │ │ └── app1.c │ │ ├── 00readme.txt │ │ └── inc │ │ │ └── ffinteger.h │ ├── PetitFS_0.03 │ │ ├── doc │ │ │ ├── img │ │ │ │ ├── layers3.png │ │ │ │ └── rwtest3.png │ │ │ ├── css_p.css │ │ │ └── pf │ │ │ │ ├── sdir.html │ │ │ │ ├── filename.html │ │ │ │ └── dinit.html │ │ └── inc │ │ │ ├── pffinteger.h │ │ │ └── pffdiskio.h │ └── README.md ├── Base │ ├── README.md │ └── inc │ │ ├── timeout.h │ │ ├── stopwatch.h │ │ ├── pulse.h │ │ ├── beep.h │ │ ├── shift.h │ │ ├── power-saving.h │ │ ├── getchar.h │ │ ├── putchar.h │ │ └── stdint.h ├── User │ └── README.md ├── STM8L_Discovery │ ├── README.md │ └── inc │ │ └── STM8S_Discovery_config.h ├── STM8S_Discovery │ ├── README.md │ └── inc │ │ └── STM8S_Discovery_config.h └── muBoard │ ├── README.md │ └── inc │ ├── muBoard_config.h │ ├── mub_error_codes.h │ └── mub_diffAmp.h ├── Projects ├── General_Examples │ ├── Dhrystone │ │ ├── Dhrystone.tar.gz │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Beeper │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── I2C_read │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── I2C_write │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Minimal-C │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── echo_UART │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── ADC_Measure │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Basic_Project │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Measure_PWM │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Pin_Interrupt │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Pin_Read_Write │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── Port_Interrupt │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Printf_UART │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Trap_Interrupt │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── EEPROM_Datalogger │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Gets_Printf_UART │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Minimal-C_with_ISR │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── P-Flash_Datalogger │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Power_Saving_Modes │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── TIM3_PWM_generate │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Timeout_Scheduler │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── echo_UART_with_ISR │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── mirror_two_UARTs │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── ADC_Continuous_with_ISR │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── config.h │ ├── Attach_1ms_Interrupt │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── clean.py │ ├── Bootloader_Activation │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── config.h │ ├── mirror_two_UARTs_with_ISR │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── config.h │ └── PiAndMore10 │ │ ├── STM8S_Discovery │ │ ├── main.c │ │ └── config.h │ │ └── muBoard │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py ├── chmod_python.sh ├── muBoard_Examples │ ├── Pin_Read_Write │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── terminal.py │ │ ├── config.h │ │ └── clean.py │ ├── LCD-display_I2C │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── digital-poti_I2C │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── main.c │ └── README.md ├── Libraries_Examples │ ├── DigPoti-AD5280 │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── DigPoti-AD5282 │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── LCD-BTHQ21605V │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── main.c │ │ └── clean.py │ ├── SD-card_fatFS │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── clean.py │ ├── SD-card_petitFS │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── clean.py │ └── README.md ├── STM8S_Discovery_Examples │ ├── Minimal-C │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── main.c │ ├── Basic_Project │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ └── main.c │ ├── Attach_1ms_Interrupt │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ └── config.h │ └── echo_UART_with_ISR │ │ ├── STVD_Cosmic │ │ └── STM8_Template.stw │ │ └── config.h ├── STM8_StdPeriphLib_Examples │ ├── Minimal-C │ │ ├── STVD_Cosmic │ │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── stm8s_conf.h │ │ ├── SPL.c │ │ └── main.c │ └── Basic_Project │ │ ├── STVD_Cosmic │ │ └── STM8_Template.stw │ │ ├── config.h │ │ ├── stm8s_conf.h │ │ ├── SPL.c │ │ └── main.c ├── clean_all_projects.py ├── build_all_projects.py └── README.md ├── .gitignore ├── README.md └── Tools └── README.md /Docu/STM8_Devices.ods: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/STM8_Devices.ods -------------------------------------------------------------------------------- /Docu/Images/STM8_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/STM8_logo.jpg -------------------------------------------------------------------------------- /Docu/Images/muBoard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/muBoard.jpg -------------------------------------------------------------------------------- /Docu/Images/stm8af_discovery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/stm8af_discovery.png -------------------------------------------------------------------------------- /Docu/Images/stm8al_discovery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/stm8al_discovery.png -------------------------------------------------------------------------------- /Docu/Images/stm8l_discovery.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/stm8l_discovery.jpg -------------------------------------------------------------------------------- /Docu/Images/stm8s_discovery.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Docu/Images/stm8s_discovery.jpg -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f1.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f2.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f3.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f4.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f5.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f6.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/f7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/f7.png -------------------------------------------------------------------------------- /Library/Libraries/PetitFS_0.03/doc/img/layers3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/PetitFS_0.03/doc/img/layers3.png -------------------------------------------------------------------------------- /Library/Libraries/PetitFS_0.03/doc/img/rwtest3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/PetitFS_0.03/doc/img/rwtest3.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/funcs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/funcs.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/mkfs.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/mkfs.xls -------------------------------------------------------------------------------- /Projects/General_Examples/Dhrystone/Dhrystone.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Projects/General_Examples/Dhrystone/Dhrystone.tar.gz -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/layers.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/layers1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/layers1.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/layers2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/layers2.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/layers3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/layers3.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/mkfatimg.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/mkfatimg.zip -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/modules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/modules.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/rwtest1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/rwtest1.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/rwtest2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/rwtest2.png -------------------------------------------------------------------------------- /Library/Libraries/FatFS_0.13/documents/res/rwtest3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gicking/STM8_templates/HEAD/Library/Libraries/FatFS_0.13/documents/res/rwtest3.png -------------------------------------------------------------------------------- /Docu/README.md: -------------------------------------------------------------------------------- 1 | # Docu 2 | 3 | Details on installation and an API description can be found in the project [Wiki](https://github.com/gicking/STM8_templates/wiki) 4 | 5 | -------------------------------------------------------------------------------- /Library/Libraries/PetitFS_0.03/doc/css_p.css: -------------------------------------------------------------------------------- 1 | body {margin: 8px; background-color: #ffecf0; font-color: black; font-family: serif; line-height: 133%; max-width: 1024px;} 2 | -------------------------------------------------------------------------------- /Projects/chmod_python.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # change to current working directory 4 | cd `dirname $0` 5 | 6 | # recursively make all python scripts executable 7 | find . -name "*.py" -exec chmod u+x {} \; 8 | 9 | -------------------------------------------------------------------------------- /Library/Base/README.md: -------------------------------------------------------------------------------- 1 | Generic, board independent STM8 routines and macros in C. 2 | 3 | A description of commands and API is found in the [Wiki](https://github.com/gicking/STM8_templates/wiki) 4 | 5 | Path is automatically searched by the build process -> names have to be unique 6 | 7 | -------------------------------------------------------------------------------- /Library/Libraries/README.md: -------------------------------------------------------------------------------- 1 | External libraries, and libraries to control external circuits. 2 | 3 | A description of commands and API is found in the [Wiki](https://github.com/gicking/STM8_templates/wiki) 4 | 5 | Path is automatically searched by the build process -> names have to be unique 6 | 7 | -------------------------------------------------------------------------------- /Library/User/README.md: -------------------------------------------------------------------------------- 1 | Place to store user libraries. 2 | 3 | Path is automatically searched by the build process -> names have to be unique 4 | 5 | If you implemented a useful library, please consider contributing it to this repository! Just drop me a short note. 6 | 7 | Thanks in advance! :smile: 8 | -------------------------------------------------------------------------------- /Projects/General_Examples/Beeper/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Dhrystone/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/I2C_read/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/I2C_write/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Minimal-C/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/echo_UART/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/ADC_Measure/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Basic_Project/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Measure_PWM/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Pin_Interrupt/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Pin_Read_Write/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Port_Interrupt/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Printf_UART/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Trap_Interrupt/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/muBoard_Examples/Pin_Read_Write/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/EEPROM_Datalogger/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Gets_Printf_UART/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Minimal-C_with_ISR/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/P-Flash_Datalogger/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Power_Saving_Modes/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/TIM3_PWM_generate/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Timeout_Scheduler/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/echo_UART_with_ISR/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/mirror_two_UARTs/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/Libraries_Examples/DigPoti-AD5280/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/Libraries_Examples/DigPoti-AD5282/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/Libraries_Examples/LCD-BTHQ21605V/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/Libraries_Examples/SD-card_fatFS/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/Libraries_Examples/SD-card_petitFS/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8S_Discovery_Examples/Minimal-C/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8_StdPeriphLib_Examples/Minimal-C/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/muBoard_Examples/LCD-display_I2C/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/muBoard_Examples/digital-poti_I2C/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/ADC_Continuous_with_ISR/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Attach_1ms_Interrupt/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/Bootloader_Activation/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8S_Discovery_Examples/Basic_Project/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8_StdPeriphLib_Examples/Basic_Project/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/General_Examples/mirror_two_UARTs_with_ISR/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8S_Discovery_Examples/Attach_1ms_Interrupt/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Projects/STM8S_Discovery_Examples/echo_UART_with_ISR/STVD_Cosmic/STM8_Template.stw: -------------------------------------------------------------------------------- 1 | ; STMicroelectronics Workspace file 2 | 3 | [Version] 4 | Keyword=ST7Workspace-V0.7 5 | 6 | [Project0] 7 | Filename=stm8_template.stp 8 | Dependencies= 9 | [Options] 10 | ActiveProject=STM8_Template 11 | ActiveConfig=Release 12 | AddSortedElements=1 13 | -------------------------------------------------------------------------------- /Library/STM8L_Discovery/README.md: -------------------------------------------------------------------------------- 1 | [STM8L Discovery](http://www.st.com/en/evaluation-tools/stm8l-discovery.html) specific routines and macros. This entry level board allows upload and debugging via SWIM interface. 2 | 3 | A description of commands and API is found in the [Wiki](https://github.com/gicking/STM8_templates/wiki) 4 | 5 | Path is automatically searched by the build process -> names have to be unique 6 | 7 |
8 |
9 |
8 |
9 |
8 |
9 |
The DIR structure is used for the work area to read a directory by pf_oepndir, pf_readdir function.
17 |
18 | typedef struct {
19 | WORD index; /* Current read/write index number */
20 | BYTE* fn; /* Pointer to the SFN (in/out) {file[8],ext[3],status[1]} */
21 | CLUST sclust; /* Table start cluster (0:Static table) */
22 | CLUST clust; /* Current cluster */
23 | DWORD sect; /* Current sector */
24 | } DIR;
25 |
26 | The path name format on the Petit FatFs module is similer to MS-DOS as follows.
17 |"[/]directory/file"18 |
The Petit FatFs module supports only 8.3 format file name. The sub-directories are separated with a /. The path name is terminated with a nul character, control character or white space. Heading spaces are ignored and skipped. When _USE_LCC == 1, lower case characters are allowed for the path name.
19 |The Petit FatFs module does not have a concept of current directory like OS oriented file system. All objects on the volume are always specified in full path name following from the root directory. Heading separator is ignored and it can be exist or omitted.
20 |The disk_initialize function initializes the disk drive.
17 |18 | DSTATUS disk_initialize (void) 19 |20 |
The disk status is returned in combination of following flags.
25 |The disk_initialize function initializes the storage device. If the function succeeded, STA_NOINIT flag in the return value is cleared.
36 |