├── img
├── lcd.jpg
├── shift.png
├── stlink.jpg
├── artifact.png
├── download.png
├── running.gif
├── DAC_signal.png
├── after_shift.png
├── connection.png
├── openocd_unix.png
├── sunus_big_endian.png
├── sinus_little_endian.png
├── sinus_little_endian_shift.png
└── success_connection_for_unix.png
├── .gitignore
├── Standard_Peripheral_Library_STM8L_V1.4.0
├── Project
│ ├── Discover
│ │ ├── STVD
│ │ │ ├── Raisonance
│ │ │ │ ├── discover.dep
│ │ │ │ └── Discover.stw
│ │ │ └── Cosmic
│ │ │ │ ├── Discover.stw
│ │ │ │ └── discover.pdb
│ │ ├── src
│ │ │ ├── main.c
│ │ │ ├── discover_functions.c
│ │ │ ├── stm8l_discovery_lcd.c
│ │ │ ├── eeprom.c
│ │ │ └── delay.c
│ │ ├── inc
│ │ │ ├── stm8l_discovery_lcd.h
│ │ │ ├── delay.h
│ │ │ ├── discover_board.h
│ │ │ ├── icc_measure.h
│ │ │ └── stm8l15x_conf.h
│ │ └── EWSTM8
│ │ │ ├── Discover.eww
│ │ │ ├── settings
│ │ │ ├── Discover.dni
│ │ │ └── Discover.cspy.bat
│ │ │ └── discovery_lnk.icf
│ ├── DMA
│ │ ├── DMA_WFE
│ │ │ ├── readme.txt
│ │ │ └── stm8l15x_conf.h
│ │ ├── DMA_WFI
│ │ │ ├── readme.txt
│ │ │ └── stm8l15x_conf.h
│ │ ├── Complete list of DMA examples.txt
│ │ └── DMA_ADCtoTIM
│ │ │ └── stm8l15x_conf.h
│ ├── I2C
│ │ ├── I2C_TSENSOR
│ │ │ ├── main.c
│ │ │ └── stm8l15x_conf.h
│ │ ├── I2C_TwoBoards
│ │ │ ├── I2C_JoystickPlay
│ │ │ │ ├── Slave
│ │ │ │ │ └── main.h
│ │ │ │ └── Master
│ │ │ │ │ └── main.h
│ │ │ └── I2C_DataExchange
│ │ │ │ ├── Slave
│ │ │ │ ├── main.h
│ │ │ │ └── main.c
│ │ │ │ └── Master
│ │ │ │ └── main.h
│ │ └── I2C_EEPROM
│ │ │ └── stm8l15x_conf.h
│ ├── RTC
│ │ ├── RTC_Calendar
│ │ │ ├── readme.txt
│ │ │ ├── main.h
│ │ │ └── stm8l15x_conf.h
│ │ ├── RTC_ChronoSubSecond
│ │ │ ├── readme.txt
│ │ │ └── main.h
│ │ ├── RTC_Tamper1Detection
│ │ │ ├── readme.txt
│ │ │ └── main.h
│ │ ├── RTC_WakeUpLPMode
│ │ │ └── readme.txt
│ │ └── RTC_PeriodicWakeup500ms
│ │ │ └── readme.txt
│ ├── COMP
│ │ ├── COMP2_PWMSignalControl
│ │ │ ├── main.c
│ │ │ └── readme.txt
│ │ ├── COMP2_AnalogVoltageMonitoring
│ │ │ └── main.h
│ │ ├── COMP_AnalogWatchdog
│ │ │ └── main.h
│ │ └── COMP1_Halt
│ │ │ └── stm8l15x_conf.h
│ ├── TIM1
│ │ ├── TIM1_ComplementarySignals
│ │ │ ├── main.c
│ │ │ └── readme.txt
│ │ ├── TIM1_DMA
│ │ │ └── stm8l15x_conf.h
│ │ ├── TIM1_6Steps
│ │ │ └── stm8l15x_conf.h
│ │ └── TIM1_Synchro
│ │ │ └── stm8l15x_conf.h
│ ├── WavesGenerator
│ │ ├── inc
│ │ │ ├── stm8l_discovery_lcd.h
│ │ │ ├── delay.h
│ │ │ ├── discover_board.h
│ │ │ └── stm8l15x_conf.h
│ │ ├── src
│ │ │ ├── stm8l_discovery_lcd.c
│ │ │ ├── stm8l-discoveryl.c
│ │ │ └── delay.c
│ │ ├── EWSTM8
│ │ │ ├── WavesGenerator.eww
│ │ │ └── settings
│ │ │ │ ├── WavesGenerator.dni
│ │ │ │ ├── WavesGenerator.cspy.bat
│ │ │ │ └── WavesGenerator.wsdt
│ │ └── STVD
│ │ │ ├── Cosmic
│ │ │ ├── WavesGenerator.stw
│ │ │ └── wavesgenerator.pdb
│ │ │ └── Raisonance
│ │ │ ├── WavesGenerator.stw
│ │ │ └── wavesgenerator.pdb
│ ├── AES
│ │ ├── AES_MultipleBlockEncryptDecrypt
│ │ │ └── main.h
│ │ ├── AES_KeyDerivation
│ │ │ └── readme.txt
│ │ └── AES_EncryptDecrypt
│ │ │ └── readme.txt
│ ├── Project_template
│ │ ├── STVD
│ │ │ ├── Raisonance
│ │ │ │ ├── stvd_project.dep
│ │ │ │ └── STVD_workspace.stw
│ │ │ └── Cosmic
│ │ │ │ ├── STVD_workspace.stw
│ │ │ │ └── stvd_project.dep
│ │ ├── EWSTM8
│ │ │ ├── workspace.eww
│ │ │ └── settings
│ │ │ │ ├── project.dni
│ │ │ │ ├── project.cspy.bat
│ │ │ │ └── workspace.wsdt
│ │ ├── src
│ │ │ └── main.c
│ │ └── inc
│ │ │ └── stm8l15x_conf.h
│ ├── DAC
│ │ ├── DAC_SignalsGeneration
│ │ │ └── main.h
│ │ └── DAC_NoiseTriangleGenerator
│ │ │ └── readme.txt
│ ├── USART
│ │ ├── USART_MultiProcessor
│ │ │ └── main.h
│ │ └── USART_IrDA
│ │ │ └── stm8l15x_conf.h
│ ├── GPIO
│ │ └── GPIO_Toggle
│ │ │ ├── readme.txt
│ │ │ └── stm8l15x_conf.h
│ ├── TIM4
│ │ └── TIM4_TimeBase
│ │ │ └── readme.txt
│ ├── CLK
│ │ └── CLK_SYSCLKSwitch
│ │ │ └── readme.txt
│ ├── ADC
│ │ ├── ADC_DMA
│ │ │ └── stm8l15x_conf.h
│ │ └── ADC_IT
│ │ │ └── stm8l15x_conf.h
│ ├── PWR
│ │ ├── PWR_WFI
│ │ │ └── stm8l15x_conf.h
│ │ └── PWR_PVD_Halt
│ │ │ └── stm8l15x_conf.h
│ ├── SPI
│ │ ├── SPI_MSD
│ │ │ └── stm8l15x_conf.h
│ │ ├── SPI_FLASH
│ │ │ └── stm8l15x_conf.h
│ │ └── SPI_SlaveDMA
│ │ │ └── stm8l15x_conf.h
│ ├── IWDG
│ │ └── IWDG_Example
│ │ │ └── stm8l15x_conf.h
│ └── TIM2
│ │ └── TIM2_TRIGLSE
│ │ └── stm8l15x_conf.h
├── .gitignore
└── Libraries
│ └── STM8L15x_StdPeriph_Driver
│ └── inc
│ ├── stm8l15x_irtim.h
│ ├── stm8l15x_wwdg.h
│ ├── stm8l15x_conf.h
│ └── stm8l15x_rst.h
└── README.md
/img/lcd.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/lcd.jpg
--------------------------------------------------------------------------------
/img/shift.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/shift.png
--------------------------------------------------------------------------------
/img/stlink.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/stlink.jpg
--------------------------------------------------------------------------------
/img/artifact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/artifact.png
--------------------------------------------------------------------------------
/img/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/download.png
--------------------------------------------------------------------------------
/img/running.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/running.gif
--------------------------------------------------------------------------------
/img/DAC_signal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/DAC_signal.png
--------------------------------------------------------------------------------
/img/after_shift.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/after_shift.png
--------------------------------------------------------------------------------
/img/connection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/connection.png
--------------------------------------------------------------------------------
/img/openocd_unix.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/openocd_unix.png
--------------------------------------------------------------------------------
/img/sunus_big_endian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/sunus_big_endian.png
--------------------------------------------------------------------------------
/img/sinus_little_endian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/sinus_little_endian.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | LCD_Printer/lcd_stm8.pro.user.4.10-pre1
3 | .ipynb_checkpoints/
4 | *.so
5 | remcu_include/
6 | REMCU_LICENSE.txt
--------------------------------------------------------------------------------
/img/sinus_little_endian_shift.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/sinus_little_endian_shift.png
--------------------------------------------------------------------------------
/img/success_connection_for_unix.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/img/success_connection_for_unix.png
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/STVD/Raisonance/discover.dep:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics dependencies file
2 |
3 | [Version]
4 | Keyword=ST7Project
5 | Number=1.3
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/main.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFE/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFE/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFI/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFI/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TSENSOR/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TSENSOR/main.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Calendar/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Calendar/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/discover_functions.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/discover_functions.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP2_PWMSignalControl/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP2_PWMSignalControl/main.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/stm8l_discovery_lcd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/stm8l_discovery_lcd.h
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/stm8l_discovery_lcd.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/stm8l_discovery_lcd.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_ChronoSubSecond/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_ChronoSubSecond/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Tamper1Detection/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Tamper1Detection/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP2_PWMSignalControl/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP2_PWMSignalControl/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_ComplementarySignals/main.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_ComplementarySignals/main.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/inc/stm8l_discovery_lcd.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/inc/stm8l_discovery_lcd.h
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/src/stm8l_discovery_lcd.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/src/stm8l_discovery_lcd.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/.gitignore:
--------------------------------------------------------------------------------
1 | *.d
2 | *.o
3 | *.ld
4 | *.s
5 | *.elf
6 | *.user
7 | *.config
8 | *.creator.user
9 | *.creator.user*
10 | *.creator
11 | *.files
12 | *.includes
13 | *.ll
14 | build/
15 | *.lib/
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/AES/AES_MultipleBlockEncryptDecrypt/main.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/AES/AES_MultipleBlockEncryptDecrypt/main.h
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_ComplementarySignals/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tanbras/MCU_Experiments/HEAD/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_ComplementarySignals/readme.txt
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/STVD/Raisonance/stvd_project.dep:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics dependencies file
2 |
3 | [Version]
4 | Keyword=ST7Project
5 | Number=1.3
6 |
7 | [Root.User.User\src...\..\src\main.c.Config.0]
8 | ExternDep=..\..\src\main.c
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/EWSTM8/Discover.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\Discover.ewp
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/EWSTM8/workspace.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\project.ewp
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/EWSTM8/WavesGenerator.eww:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | $WS_DIR$\WavesGenerator.ewp
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/STVD/Cosmic/Discover.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=discover.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=discover
11 | ActiveConfig=Debug
12 | AddSortedElements=1
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/STVD/Raisonance/Discover.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=discover.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=discover
11 | ActiveConfig=Debug
12 | AddSortedElements=1
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/STVD/Cosmic/STVD_workspace.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=stvd_project.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=stvd_project
11 | ActiveConfig=Debug
12 | AddSortedElements=1
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/STVD/Cosmic/WavesGenerator.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=wavesgenerator.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=wavesgenerator
11 | ActiveConfig=Debug
12 | AddSortedElements=0
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/STVD/Raisonance/STVD_workspace.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=stvd_project.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=stvd_project
11 | ActiveConfig=Debug
12 | AddSortedElements=1
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/STVD/Raisonance/WavesGenerator.stw:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics Workspace file
2 |
3 | [Version]
4 | Keyword=ST7Workspace-V0.7
5 |
6 | [Project0]
7 | Filename=wavesgenerator.stp
8 | Dependencies=
9 | [Options]
10 | ActiveProject=wavesgenerator
11 | ActiveConfig=Debug
12 | AddSortedElements=1
13 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/STVD/Cosmic/stvd_project.dep:
--------------------------------------------------------------------------------
1 | ; STMicroelectronics dependencies file
2 |
3 | [Version]
4 | Keyword=ST7Project
5 | Number=1.3
6 |
7 | [Root.User.User\src...\..\src\main.c.Config.0]
8 | ExternDep= ..\..\src\main.c "C:\Program Files\COSMIC\CXSTM8_16K\Hstm8\mods0.h" ..\..\..\..\libraries\stm8l15x_stdperiph_driver\inc\stm8l15x.h ..\..\inc\stm8l15x_conf.h
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/EWSTM8/settings/WavesGenerator.dni:
--------------------------------------------------------------------------------
1 | [DebugChecksum]
2 | Checksum=902704152
3 | [DisAssemblyWindow]
4 | NumStates=_ 1
5 | State 1=_ 1
6 | [InstructionProfiling]
7 | Enabled=_ 0
8 | [CodeCoverage]
9 | Enabled=_ 0
10 | [Profiling]
11 | Enabled=0
12 | [StackPlugin]
13 | Enabled=1
14 | OverflowWarningsEnabled=1
15 | WarningThreshold=90
16 | SpWarningsEnabled=1
17 | WarnHow=0
18 | UseTrigger=1
19 | TriggerName=main
20 | LimitSize=0
21 | ByteLimit=50
22 | [Interrupts]
23 | Enabled=1
24 | [MemoryMap]
25 | Enabled=0
26 | Base=0
27 | UseAuto=0
28 | TypeViolation=1
29 | UnspecRange=1
30 | ActionState=1
31 | [TraceHelper]
32 | Enabled=0
33 | ShowSource=1
34 | [Log file]
35 | LoggingEnabled=_ 0
36 | LogFile=_ ""
37 | Category=_ 0
38 | [TermIOLog]
39 | LoggingEnabled=_ 0
40 | LogFile=_ ""
41 | [Breakpoints]
42 | Count=0
43 | [Aliases]
44 | Count=0
45 | SuppressDialog=0
46 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/EWSTM8/settings/project.dni:
--------------------------------------------------------------------------------
1 | [DebugChecksum]
2 | Checksum=-693038697
3 | [DisAssemblyWindow]
4 | NumStates=_ 1
5 | State 1=_ 1
6 | [InstructionProfiling]
7 | Enabled=_ 0
8 | [CodeCoverage]
9 | Enabled=_ 0
10 | [Profiling]
11 | Enabled=0
12 | [StackPlugin]
13 | Enabled=1
14 | OverflowWarningsEnabled=1
15 | WarningThreshold=90
16 | SpWarningsEnabled=1
17 | WarnHow=0
18 | UseTrigger=1
19 | TriggerName=main
20 | LimitSize=0
21 | ByteLimit=50
22 | [DriverProfiling]
23 | Enabled=0
24 | Source=1
25 | Graph=0
26 | [Interrupts]
27 | Enabled=1
28 | [MemoryMap]
29 | Enabled=0
30 | Base=0
31 | UseAuto=0
32 | TypeViolation=1
33 | UnspecRange=1
34 | ActionState=1
35 | [TraceHelper]
36 | Enabled=0
37 | ShowSource=1
38 | [Log file]
39 | LoggingEnabled=_ 0
40 | LogFile=_ ""
41 | Category=_ 0
42 | [TermIOLog]
43 | LoggingEnabled=_ 0
44 | LogFile=_ ""
45 | [Breakpoints]
46 | Count=0
47 | [Aliases]
48 | Count=0
49 | SuppressDialog=0
50 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/EWSTM8/settings/Discover.dni:
--------------------------------------------------------------------------------
1 | [DebugChecksum]
2 | Checksum=1126153942
3 | [DisAssemblyWindow]
4 | NumStates=_ 1
5 | State 1=_ 1
6 | [InstructionProfiling]
7 | Enabled=_ 0
8 | [CodeCoverage]
9 | Enabled=_ 0
10 | [Profiling]
11 | Enabled=0
12 | [StackPlugin]
13 | Enabled=1
14 | OverflowWarningsEnabled=1
15 | WarningThreshold=90
16 | SpWarningsEnabled=1
17 | WarnHow=0
18 | UseTrigger=1
19 | TriggerName=main
20 | LimitSize=0
21 | ByteLimit=50
22 | [DriverProfiling]
23 | Enabled=0
24 | Source=1
25 | Graph=0
26 | [Interrupts]
27 | Enabled=1
28 | [MemoryMap]
29 | Enabled=0
30 | Base=0
31 | UseAuto=0
32 | TypeViolation=1
33 | UnspecRange=1
34 | ActionState=1
35 | [TraceHelper]
36 | Enabled=0
37 | ShowSource=1
38 | [Log file]
39 | LoggingEnabled=_ 0
40 | LogFile=_ ""
41 | Category=_ 0
42 | [TermIOLog]
43 | LoggingEnabled=_ 0
44 | LogFile=_ ""
45 | [Breakpoints]
46 | Bp0=_ "STD_CODE" "{$PROJ_DIR$\..\src\main.c}.79.3@1" 0 0 0 0 "" 0 ""
47 | Count=1
48 | [Aliases]
49 | Count=0
50 | SuppressDialog=0
51 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/STVD/Cosmic/discover.pdb:
--------------------------------------------------------------------------------
1 | [DebugState_v1-Debug.DebugContext]
2 | DumpRWOnFly1=0
3 | DumpRWOnFly2=0
4 | DumpRWOnFly3=0
5 | DumpRWOnFly4=0
6 | WatchVariables1=
7 | FormatWatch1=0
8 | FormatViewType1=1
9 | FormatViewAddress1=1
10 | WatchRWOnFlyTab1=0
11 | WatchVariables2=
12 | FormatWatch2=0
13 | FormatViewType2=1
14 | FormatViewAddress2=1
15 | WatchRWOnFlyTab2=0
16 | WatchVariables3=
17 | FormatWatch3=0
18 | FormatViewType3=1
19 | FormatViewAddress3=1
20 | WatchRWOnFlyTab3=0
21 | WatchVariables4=
22 | FormatWatch4=0
23 | FormatViewType4=1
24 | FormatViewAddress4=1
25 | WatchRWOnFlyTab4=0
26 | FormatLocals=0
27 | FormatParameters=0
28 | [DebugState_v1-Debug.AddOn.St7Registers]
29 | ActiveTab=2
30 | [DebugState_v1-Debug.AddOn.St7PeripheralRegister]
31 | DisplayFormat=1
32 | ShowPeriphAddress=0
33 | ShowRegisterAddress=1
34 | [DebugState_v1-Debug.AddOn.St7McuIcdConf]
35 | McuName=STM8L152C6
36 | [DebugState_v1-Debug.AddOn.IcdBreak]
37 | ICDBreak0=CR:0x00000000,BK1:0x00000000,BK2:0x00000000
38 | [DebugState_v1-Debug.AddOn.SteppingMode]
39 | Mode=hardware
40 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/STVD/Cosmic/wavesgenerator.pdb:
--------------------------------------------------------------------------------
1 | [DebugState_v1-Debug.DebugContext]
2 | DumpRWOnFly1=0
3 | DumpRWOnFly2=0
4 | DumpRWOnFly3=0
5 | DumpRWOnFly4=0
6 | WatchVariables1=
7 | FormatWatch1=0
8 | FormatViewType1=1
9 | FormatViewAddress1=1
10 | WatchRWOnFlyTab1=0
11 | WatchVariables2=
12 | FormatWatch2=0
13 | FormatViewType2=1
14 | FormatViewAddress2=1
15 | WatchRWOnFlyTab2=0
16 | WatchVariables3=
17 | FormatWatch3=0
18 | FormatViewType3=1
19 | FormatViewAddress3=1
20 | WatchRWOnFlyTab3=0
21 | WatchVariables4=
22 | FormatWatch4=0
23 | FormatViewType4=1
24 | FormatViewAddress4=1
25 | WatchRWOnFlyTab4=0
26 | FormatLocals=0
27 | FormatParameters=0
28 | [DebugState_v1-Debug.AddOn.St7Registers]
29 | ActiveTab=2
30 | [DebugState_v1-Debug.AddOn.St7PeripheralRegister]
31 | DisplayFormat=1
32 | ShowPeriphAddress=0
33 | ShowRegisterAddress=1
34 | [DebugState_v1-Debug.AddOn.St7McuIcdConf]
35 | McuName=STM8L152C6
36 | [DebugState_v1-Debug.AddOn.IcdBreak]
37 | ICDBreak0=CR:0x00000000,BK1:0x00000000,BK2:0x00000000
38 | [DebugState_v1-Debug.AddOn.SteppingMode]
39 | Mode=hardware
40 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/STVD/Raisonance/wavesgenerator.pdb:
--------------------------------------------------------------------------------
1 | [DebugState_v1-Debug.DebugContext]
2 | DumpRWOnFly1=0
3 | DumpRWOnFly2=0
4 | DumpRWOnFly3=0
5 | DumpRWOnFly4=0
6 | WatchVariables1=
7 | FormatWatch1=0
8 | FormatViewType1=1
9 | FormatViewAddress1=1
10 | WatchRWOnFlyTab1=0
11 | WatchVariables2=
12 | FormatWatch2=0
13 | FormatViewType2=1
14 | FormatViewAddress2=1
15 | WatchRWOnFlyTab2=0
16 | WatchVariables3=
17 | FormatWatch3=0
18 | FormatViewType3=1
19 | FormatViewAddress3=1
20 | WatchRWOnFlyTab3=0
21 | WatchVariables4=
22 | FormatWatch4=0
23 | FormatViewType4=1
24 | FormatViewAddress4=1
25 | WatchRWOnFlyTab4=0
26 | FormatLocals=0
27 | FormatParameters=0
28 | [DebugState_v1-Debug.AddOn.St7Registers]
29 | ActiveTab=2
30 | [DebugState_v1-Debug.AddOn.St7PeripheralRegister]
31 | DisplayFormat=1
32 | ShowPeriphAddress=0
33 | ShowRegisterAddress=1
34 | [DebugState_v1-Debug.AddOn.St7McuIcdConf]
35 | McuName=STM8L152C6
36 | [DebugState_v1-Debug.AddOn.IcdBreak]
37 | ICDBreak0=CR:0x00000000,BK1:0x00000000,BK2:0x00000000
38 | [DebugState_v1-Debug.AddOn.SteppingMode]
39 | Mode=hardware
40 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/Complete list of DMA examples.txt:
--------------------------------------------------------------------------------
1 | /**
2 | @page DMA_EXAMPLES DMA examples List
3 |
4 | @verbatim
5 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
6 | * @file DMA/readme.txt
7 | * @author MCD Application Team
8 | * @version V1.5.2
9 | * @date 30-September-2014
10 | * @brief STM8L15x Standard Peripherals DMA examples List.
11 | ******************************************************************************
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | @endverbatim
27 |
28 | In addition to the examples within this folder, other examples uses the DMA:
29 |
30 | *
31 | * - Complete List of DMA Examples
32 | * - @subpage ADC_DMA
33 | * - @subpage AES_MultipleBlockEncryptDecrypt
34 | * - @subpage DAC_SignalsGeneration
35 | * - @subpage SPI_SlaveDMA
36 | * - @subpage TIM1_DMA
37 | * - @subpage TIM1_DMABurstMode
38 | * - @subpage USART_HyperTerminal_DMA
39 | *
40 |
41 | * © COPYRIGHT STMicroelectronics
42 | */
43 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/delay.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file delay.h
4 | * @author Microcontroller Division
5 | * @version V1.2.0
6 | * @date 09/2010
7 | * @brief delay functions header
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 |
22 | //------------------------------------------------------------------------------
23 | // Function Name : delay_ms
24 | // Description : delay for some time in ms unit
25 | // Input : n_ms is how many ms of time to delay
26 | //------------------------------------------------------------------------------
27 | void delay_ms(u16 n_ms) ;
28 |
29 |
30 | //------------------------------------------------------------------------------
31 | // Function Name : delay_10us
32 | // Description : delay for some time in 10us unit(partial accurate)
33 | // Input : n_10us is how many 10us of time to delay
34 | //------------------------------------------------------------------------------
35 | void delay_10us(u16 n_10us);
36 |
37 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
38 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/inc/delay.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file delay.h
4 | * @author Microcontroller Division
5 | * @version V1.0.1
6 | * @date 08/2010
7 | * @brief delay functions header
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 |
22 | //------------------------------------------------------------------------------
23 | // Function Name : delay_ms
24 | // Description : delay for some time in ms unit
25 | // Input : n_ms is how many ms of time to delay
26 | //------------------------------------------------------------------------------
27 | void delay_ms(u16 n_ms) ;
28 |
29 |
30 | //------------------------------------------------------------------------------
31 | // Function Name : delay_10us
32 | // Description : delay for some time in 10us unit(partial accurate)
33 | // Input : n_10us is how many 10us of time to delay
34 | //------------------------------------------------------------------------------
35 | void delay_10us(u16 n_10us);
36 |
37 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
38 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_WakeUpLPMode/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page RTC_WakeUpLPMode Use RTC wake up from Low power Mode
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file RTC/RTC_WakeUpLPMode/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the RTC Wakeup unit Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the RTC peripheral
30 | to exit the MCU from Active-halt mode using the wakeup unit.
31 | In addition, the example describes how to use the STM8L15x LCD controller to
32 | drive the Pacific Display LCD glass mounted on STM8L152x-EVAL board.
33 |
34 | @par Example location
35 |
36 | The example sources and readme files can be found in the following directory path:
37 | STM8L15x_StdPeriph_Examples\LCD\LCD_SegmentsDrive\
38 |
39 | * © COPYRIGHT STMicroelectronics
40 | */
41 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TwoBoards/I2C_JoystickPlay/Slave/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TwoBoards/I2C_JoystickPlay/Slave/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program Declarations
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 |
33 | /* Define I2C Address mode ---------------------------------------------------*/
34 | #define I2C_slave_7Bits_Address
35 |
36 | /* Define Slave Address ---------------------------------------------------*/
37 | #ifdef I2C_slave_7Bits_Address
38 | #define SLAVE_ADDRESS 0x30
39 | #else
40 | #define SLAVE_ADDRESS 0x330
41 | #endif
42 |
43 |
44 | #endif /* __MAIN_H*/
45 |
46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
47 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/discover_board.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file discover_board.h
4 | * @author Microcontroller Division
5 | * @version V1.2.0
6 | * @date 09/2010
7 | * @brief Input/Output defines
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 |
23 | #ifndef __DISCOVER_BOARD_H
24 | #define __DISCOVER_BOARD_H
25 |
26 |
27 | /* MACROs for SET, RESET or TOGGLE Output port */
28 |
29 | #define GPIO_HIGH(a,b) a->ODR|=b
30 | #define GPIO_LOW(a,b) a->ODR&=~b
31 | #define GPIO_TOGGLE(a,b) a->ODR^=b
32 |
33 | #define BUTTON_GPIO_PORT GPIOC
34 | #define USER_GPIO_PIN GPIO_Pin_1
35 |
36 | #define LED_GREEN_PORT GPIOE
37 | #define LED_GREEN_PIN GPIO_Pin_7
38 |
39 | #define LED_BLUE_PORT GPIOC
40 | #define LED_BLUE_PIN GPIO_Pin_7
41 | #define CTN_GPIO_PORT GPIOC
42 | #define CTN_CNTEN_GPIO_PIN GPIO_Pin_4
43 | #define WAKEUP_GPIO_PORT GPIOE
44 | #define ICC_WAKEUP_GPIO_PIN GPIO_Pin_6
45 | #define ICC_WAKEUP_EXTI_PIN EXTI_Pin_3
46 |
47 | #endif
48 |
49 |
50 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
51 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 |
33 | /* Define I2C Address mode ---------------------------------------------------*/
34 | /* Comment the line below if you want to use the 10-bit addressing mode */
35 | #define I2C_slave_7Bits_Address
36 |
37 | /* Define Slave Address ---------------------------------------------------*/
38 | #ifdef I2C_slave_7Bits_Address
39 | #define SLAVE_ADDRESS 0x30
40 | #else
41 | #define SLAVE_ADDRESS 0x330
42 | #endif
43 |
44 | #endif /* __MAIN_H*/
45 |
46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
47 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/inc/discover_board.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file discover_board.h
4 | * @author Microcontroller Division
5 | * @version V1.1.0
6 | * @date 08/2010
7 | * @brief Input/Output defines
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 |
23 | #ifndef __DISCOVER_BOARD_H
24 | #define __DISCOVER_BOARD_H
25 |
26 |
27 | /* MACROs for SET, RESET or TOGGLE Output port */
28 |
29 | #define GPIO_HIGH(a,b) a->ODR|=b
30 | #define GPIO_LOW(a,b) a->ODR&=~b
31 | #define GPIO_TOGGLE(a,b) a->ODR^=b
32 |
33 | #define BUTTON_GPIO_PORT GPIOC
34 | #define USER_GPIO_PIN GPIO_Pin_1
35 |
36 | #define LED_GREEN_PORT GPIOE
37 | #define LED_GREEN_PIN GPIO_Pin_7
38 |
39 | #define LED_BLUE_PORT GPIOC
40 | #define LED_BLUE_PIN GPIO_Pin_7
41 | #define CTN_GPIO_PORT GPIOC
42 | #define CTN_CNTEN_GPIO_PIN GPIO_Pin_4
43 | #define WAKEUP_GPIO_PORT GPIOE
44 | #define ICC_WAKEUP_GPIO_PIN GPIO_Pin_6
45 | #define ICC_WAKEUP_EXTI_PIN EXTI_Pin_3
46 |
47 | #endif
48 |
49 |
50 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
51 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/icc_measure.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file icc_measure.h
4 | * @author Microcontroller Division
5 | * @version V1.2.0
6 | * @date 09/2010
7 | * @brief Current measurements defines
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __ICC_MEASURE_H
23 | #define __ICC_MEASURE_H
24 |
25 | /* Includes ------------------------------------------------------------------*/
26 | #include "stm8l15x.h"
27 | #include "stm8l15x_adc.h"
28 |
29 | /* Private define ------------------------------------------------------------*/
30 | #define MCU_RUN 0
31 | #define MCU_LPR 1
32 | #define MCU_HALT 3
33 | #define MCU_LPR_LCD 4
34 |
35 | /* Exported constants --------------------------------------------------------*/
36 | /* Exported macro ------------------------------------------------------------*/
37 | /* Exported functions ------------------------------------------------------- */
38 | u16 ADC_Supply(void);
39 | void ADC_Icc_Init(void);
40 | u16 ADC_Icc_Test(u8 Mcu_State);
41 | void GPIO_LowPower_Config(void);
42 | void delay_ms(u16 n_ms);
43 | void delay_10us(u16 n_10us);
44 | void Delay(uint16_t nCount);
45 |
46 | #endif /* __ICC_MEASURE_H*/
47 |
48 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
49 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/eeprom.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2010 IAR Systems AB.
3 | *
4 | * Permission to use, copy, modify, and distribute this software for any
5 | * purpose with or without fee is hereby granted, provided that the above
6 | * copyright notice and this permission notice appear in all copies.
7 | *
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 | */
16 |
17 | #include "stm8l15x_flash.h"
18 |
19 | /*
20 | * The user must implement the three extern-declared functions below
21 | * in order for the compiler to be able to automatically write to the
22 | * EEPROM memory when __eeprom variables are assigned to.
23 | */
24 |
25 |
26 | /*
27 | * Wait for the last data EEPROM operation to finish. Return 0 if the
28 | * operation failed, otherwise non-zero. You may want to handle
29 | * errors here, since the utility functions below simply ignore
30 | * errors, aborting multi-write operations early.
31 | */
32 | int __eeprom_wait_for_last_operation(void)
33 | {
34 | FLASH_Status_TypeDef status = FLASH_WaitForLastOperation(FLASH_MemType_Data);
35 | return !!(status & ( FLASH_Status_Successful_Operation));
36 | }
37 |
38 | /*
39 | * Write one byte to the data EEPROM memory.
40 | */
41 | void __eeprom_program_byte(unsigned char __near * dst, unsigned char v)
42 | {
43 | FLASH_ProgramByte((u32)dst, (u8)v);
44 | }
45 |
46 | /*
47 | * Write one 4-byte long word to the data EEPROM memory. The address
48 | * must be 4-byte aligned.
49 | */
50 | void __eeprom_program_long(unsigned char __near * dst, unsigned long v)
51 | {
52 | FLASH_ProgramWord((u32)dst, (u32)v);
53 | }
54 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP2_AnalogVoltageMonitoring/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file COMP/COMP2_AnalogVoltageMonitoring/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | #include "stm8l15x.h"
33 | #include "stm8_eval.h"
34 |
35 | /* Private typedef -----------------------------------------------------------*/
36 | /* Private define ------------------------------------------------------------*/
37 | #define STATE_OVER_THRESHOLD 0x01
38 | #define STATE_UNDER_THRESHOLD 0x03
39 |
40 | /* Private macro -------------------------------------------------------------*/
41 | /* Private variables ---------------------------------------------------------*/
42 | /* Private function prototypes -----------------------------------------------*/
43 |
44 | #endif /* __MAIN_H */
45 |
46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
47 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DAC/DAC_SignalsGeneration/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file DAC/DAC_SignalsGeneration/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Header for main.c
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | #include "stm8l15x.h"
33 | #include "stm8_eval.h"
34 |
35 | /* Private typedef -----------------------------------------------------------*/
36 | /* Private define ------------------------------------------------------------*/
37 | #define DAC_CH1RDHRH_ADDRESS 0x5388
38 | #define TIM4_PRESTAB_SIZE 5
39 | #define WAVES_TAB_SIZE 4
40 |
41 | /* Private macro -------------------------------------------------------------*/
42 | /* Private variables ---------------------------------------------------------*/
43 | /* Private function prototypes -----------------------------------------------*/
44 |
45 | #endif /* __MAIN_H */
46 |
47 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
48 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP_AnalogWatchdog/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file COMP/COMP_AnalogWatchdog/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | #include "stm8l15x.h"
33 | #include "stm8_eval.h"
34 |
35 | /* Private typedef -----------------------------------------------------------*/
36 | /* Private define ------------------------------------------------------------*/
37 | #define STATE_OVER_THRESHOLD 0x01
38 | #define STATE_WITHIN_THRESHOLD 0x02
39 | #define STATE_UNDER_THRESHOLD 0x03
40 |
41 | /* Private macro -------------------------------------------------------------*/
42 | /* Private variables ---------------------------------------------------------*/
43 | /* Private function prototypes -----------------------------------------------*/
44 | void CheckState(void);
45 |
46 | #endif /* __MAIN_H */
47 |
48 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
49 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TwoBoards/I2C_JoystickPlay/Master/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TwoBoards/I2C_JoystickPlay/Master/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | /* definition of fast or default standard mode (bus speed up to 400 or 100 kHz) */
33 | #define FAST_I2C_MODE
34 |
35 | #ifdef FAST_I2C_MODE
36 | #define I2C_SPEED 300000
37 | #define TIM4_PERIOD 124
38 | #else
39 | #define I2C_SPEED 100000
40 | #define TIM4_PERIOD 62
41 | #endif
42 |
43 |
44 | /* definition of 10-bit or default 7-bit slave address */
45 | /* #define TEN_BITS_ADDRESS */
46 |
47 | #ifdef TEN_BITS_ADDRESS
48 | #define SLAVE_ADDRESS 0x330
49 | #else
50 | #define SLAVE_ADDRESS 0x30
51 | #endif
52 |
53 | #define BUFFERSIZE 255
54 |
55 | /* Timer Delay */
56 | #define TIM_DELAY 50
57 |
58 | typedef enum {FAILED = 0, PASSED = !FAILED} TestStatus;
59 |
60 |
61 | #endif /* __MAIN_H */
62 |
63 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TwoBoards/I2C_DataExchange/Master/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TwoBoards/I2C_DataExchange/Master/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | /* definition of fast or default standard mode (bus speed up to 400 or 100 kHz) */
33 | #define FAST_I2C_MODE
34 |
35 | #ifdef FAST_I2C_MODE
36 | #define I2C_SPEED 300000
37 | #else
38 | #define I2C_SPEED 100000
39 | #endif
40 |
41 | /* definition of 10-bit or default 7-bit slave address */
42 | /* #define TEN_BITS_ADDRESS */
43 |
44 | #ifdef TEN_BITS_ADDRESS
45 | #define SLAVE_ADDRESS 0x330
46 | #else
47 | #define SLAVE_ADDRESS 0x30
48 | #endif
49 |
50 | /* This define is used in master receiver */
51 | /* Uncomment the line below if you want to use the safe procedure */
52 | //#define SAFE_PROCEDURE
53 |
54 |
55 | #define BUFFERSIZE 3
56 |
57 |
58 | typedef enum {FAILED = 0, PASSED = !FAILED} TestStatus;
59 |
60 |
61 | #endif /* __MAIN_H */
62 |
63 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/USART/USART_MultiProcessor/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file USART/USART_MultiProcessor/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief This file contains all the prototypes of the main functions.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 | /* Define to prevent recursive inclusion -------------------------------------*/
28 | #ifndef __MAIN_H
29 | #define __MAIN_H
30 |
31 | /* Private typedef -----------------------------------------------------------*/
32 | /* Private define ------------------------------------------------------------*/
33 |
34 | /* Uncomment the line below according to the target Master/Slave used in
35 | the multiprocesor communication example.*/
36 | #define USART_MASTER /*Master running */
37 | //#define USART_SLAVE /*Slave running */
38 |
39 | /* Private macro -------------------------------------------------------------*/
40 | /* Private variables ---------------------------------------------------------*/
41 | /* Private function prototypes -----------------------------------------------*/
42 | /* Private functions ---------------------------------------------------------*/
43 |
44 | #endif /* __MAIN_H */
45 |
46 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
47 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/src/stm8l-discoveryl.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm8l_eval.c
4 | * @author MCD Application Team
5 | * @version V1.0.1
6 | * @date 02/12/2010
7 | * @brief This file provides firmware functions to manage Leds, push-buttons
8 | * and COM ports available on STM8L Evaluation Boards from STMicroelectronics.
9 | ******************************************************************************
10 | * @copy
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2010 STMicroelectronics
20 | */
21 |
22 | /* Includes ------------------------------------------------------------------*/
23 | #include "stm8l-discovery.h"
24 |
25 | /** @addtogroup Utilities
26 | * @{
27 | */
28 |
29 | /** @defgroup STM8L_EVAL
30 | * @brief This file provides firmware functions to manage Leds, push-buttons
31 | * and COM ports available on STM8L Evaluation Boards from STMicroelectronics.
32 | * @{
33 | */
34 |
35 | /** @defgroup STM8L_EVAL_Private_TypesDefinitions
36 | * @{
37 | */
38 | /**
39 | * @}
40 | */
41 |
42 |
43 | /** @defgroup STM8L_EVAL_Private_Defines
44 | * @{
45 | */
46 | /**
47 | * @}
48 | */
49 |
50 |
51 | /** @defgroup STM8L_EVAL_Private_Macros
52 | * @{
53 | */
54 | /**
55 | * @}
56 | */
57 |
58 |
59 |
60 |
61 |
62 | /** @defgroup STM8L_EVAL_Private_FunctionPrototypes
63 | * @{
64 | */
65 |
66 | /**
67 | * @}
68 | */
69 |
70 |
71 | /** @defgroup STM8L_EVAL_Private_Functions
72 | * @{
73 | */
74 |
75 |
76 | /**
77 | * @}
78 | */
79 |
80 |
81 | /**
82 | * @}
83 | */
84 |
85 | /**
86 | * @}
87 | */
88 |
89 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
90 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/EWSTM8/discovery_lnk.icf:
--------------------------------------------------------------------------------
1 | /////////////////////////////////////////////////////////////////
2 | // Example ILINK command file for
3 | // STM8 IAR C/C++ Compiler and Assembler.
4 | //
5 | // Copyright 2010 IAR Systems AB.
6 | //
7 | // $Revision: 1648 $
8 | //
9 | /////////////////////////////////////////////////////////////////
10 |
11 | define memory with size = 16M;
12 |
13 | define region TinyData = [from 0x00 to 0xFF];
14 |
15 | define region NearFuncCode = [from 0x8000 to 0xFFFF];
16 |
17 | define region FarFuncCode = [from 0x8000 to 0xFFFF];
18 |
19 | define region HugeFuncCode = [from 0x8000 to 0xFFFF];
20 |
21 | define region NearData = [from 0x0000 to 0x07FF];
22 |
23 | define region Eeprom = [from 0x1000 to 0x13FF];
24 |
25 | define region BootROM = [from 0x6000 to 0x67FF];
26 |
27 |
28 | /////////////////////////////////////////////////////////////////
29 |
30 | define block CSTACK with size = _CSTACK_SIZE {};
31 |
32 | define block HEAP with size = _HEAP_SIZE {};
33 |
34 | define block INTVEC with size = 0x80 { ro section .intvec };
35 |
36 | initialize by copy { rw,
37 | ro section .tiny.rodata,
38 | section MY_RAM_FUNC};
39 |
40 | do not initialize { section .vregs };
41 | do not initialize { section .*.noinit };
42 |
43 | // Placement
44 | place at start of TinyData { rw section .vregs };
45 | place in TinyData { rw section .tiny.* };
46 |
47 | place at end of NearData { block CSTACK };
48 | place in NearData { block HEAP,
49 | rw }; // includes rw section .near.*
50 |
51 | place at start of NearFuncCode { block INTVEC };
52 | place in NearFuncCode { ro section .tiny.data_init,
53 | ro section .far.data_init,
54 | ro section .huge.data_init,
55 | ro }; // includes ro section .near_func.*
56 |
57 | place in FarFuncCode { ro section .far.*,
58 | ro section .far_func.* };
59 |
60 | place in HugeFuncCode { ro section .huge.*,
61 | ro section .huge_func.* };
62 |
63 | place in Eeprom { section .eeprom.* };
64 |
65 | /////////////////////////////////////////////////////////////////
66 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/EWSTM8/settings/Discover.cspy.bat:
--------------------------------------------------------------------------------
1 | @REM This bat file has been generated by the IAR Embeddded Workbench
2 | @REM C-SPY interactive debugger,as an aid to preparing a command
3 | @REM line for running the cspybat command line utility with the
4 | @REM appropriate settings.
5 | @REM
6 | @REM After making some adjustments to this file, you can launch cspybat
7 | @REM by typing the name of this file followed by the name of the debug
8 | @REM file (usually an ubrof file). Note that this file is generated
9 | @REM every time a new debug session is initialized, so you may want to
10 | @REM move or rename the file before making changes.
11 | @REM
12 | @REM Note: some command line arguments cannot be properly generated
13 | @REM by this process. Specifically, the plugin which is responsible
14 | @REM for the Terminal I/O window (and other C runtime functionality)
15 | @REM comes in a special version for cspybat, and the name of that
16 | @REM plugin dll is not known when generating this file. It resides in
17 | @REM the $TOOLKIT_DIR$\bin folder and is usually called XXXbat.dll or
18 | @REM XXXlibsupportbat.dll, where XXX is the name of the corresponding
19 | @REM tool chain. Replace the '' parameter
20 | @REM below with the appropriate file name. Other plugins loaded by
21 | @REM C-SPY are usually not needed by, or will not work in, cspybat
22 | @REM but they are listed at the end of this file for reference.
23 |
24 |
25 | "C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8proc.dll" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8stlink.dll" %1 --plugin "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\" --backend -B "-p" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\config\ddf\iostm8l152c6.ddf" "-d" "stlink" "--mcuname" "STM8L152C6"
26 |
27 |
28 | @REM Loaded plugins:
29 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8libsupport.dll
30 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\CodeCoverage\CodeCoverage.dll
31 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\Profiling\Profiling.dll
32 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\stack\stack.dll
33 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\SymList\SymList.dll
34 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/EWSTM8/settings/project.cspy.bat:
--------------------------------------------------------------------------------
1 | @REM This bat file has been generated by the IAR Embeddded Workbench
2 | @REM C-SPY interactive debugger,as an aid to preparing a command
3 | @REM line for running the cspybat command line utility with the
4 | @REM appropriate settings.
5 | @REM
6 | @REM After making some adjustments to this file, you can launch cspybat
7 | @REM by typing the name of this file followed by the name of the debug
8 | @REM file (usually an ubrof file). Note that this file is generated
9 | @REM every time a new debug session is initialized, so you may want to
10 | @REM move or rename the file before making changes.
11 | @REM
12 | @REM Note: some command line arguments cannot be properly generated
13 | @REM by this process. Specifically, the plugin which is responsible
14 | @REM for the Terminal I/O window (and other C runtime functionality)
15 | @REM comes in a special version for cspybat, and the name of that
16 | @REM plugin dll is not known when generating this file. It resides in
17 | @REM the $TOOLKIT_DIR$\bin folder and is usually called XXXbat.dll or
18 | @REM XXXlibsupportbat.dll, where XXX is the name of the corresponding
19 | @REM tool chain. Replace the '' parameter
20 | @REM below with the appropriate file name. Other plugins loaded by
21 | @REM C-SPY are usually not needed by, or will not work in, cspybat
22 | @REM but they are listed at the end of this file for reference.
23 |
24 |
25 | "C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8proc.dll" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8stlink.dll" %1 --plugin "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\" --backend -B "-p" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\config\ddf\iostm8s208mb.ddf" "-d" "stlink" "--mcuname" "STM8S208MB"
26 |
27 |
28 | @REM Loaded plugins:
29 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8libsupport.dll
30 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\CodeCoverage\CodeCoverage.dll
31 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\Profiling\Profiling.dll
32 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\stack\stack.dll
33 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\SymList\SymList.dll
34 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/EWSTM8/settings/WavesGenerator.cspy.bat:
--------------------------------------------------------------------------------
1 | @REM This bat file has been generated by the IAR Embeddded Workbench
2 | @REM C-SPY interactive debugger,as an aid to preparing a command
3 | @REM line for running the cspybat command line utility with the
4 | @REM appropriate settings.
5 | @REM
6 | @REM After making some adjustments to this file, you can launch cspybat
7 | @REM by typing the name of this file followed by the name of the debug
8 | @REM file (usually an ubrof file). Note that this file is generated
9 | @REM every time a new debug session is initialized, so you may want to
10 | @REM move or rename the file before making changes.
11 | @REM
12 | @REM Note: some command line arguments cannot be properly generated
13 | @REM by this process. Specifically, the plugin which is responsible
14 | @REM for the Terminal I/O window (and other C runtime functionality)
15 | @REM comes in a special version for cspybat, and the name of that
16 | @REM plugin dll is not known when generating this file. It resides in
17 | @REM the $TOOLKIT_DIR$\bin folder and is usually called XXXbat.dll or
18 | @REM XXXlibsupportbat.dll, where XXX is the name of the corresponding
19 | @REM tool chain. Replace the '' parameter
20 | @REM below with the appropriate file name. Other plugins loaded by
21 | @REM C-SPY are usually not needed by, or will not work in, cspybat
22 | @REM but they are listed at the end of this file for reference.
23 |
24 |
25 | "C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\bin\cspybat" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8proc.dll" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8stlink.dll" %1 --plugin "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\" --backend -B "-p" "C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\config\ddf\iostm8l152c6.ddf" "-d" "stlink" "--mcuname" "STM8L152C6"
26 |
27 |
28 | @REM Loaded plugins:
29 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\stm8\bin\stm8libsupport.dll
30 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\CodeCoverage\CodeCoverage.dll
31 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\Profiling\Profiling.dll
32 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\stack\stack.dll
33 | @REM C:\Program Files\IAR Systems\Embedded Workbench 6.0\common\plugins\SymList\SymList.dll
34 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x_irtim.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm8l15x_irtim.h
4 | * @author MCD Application Team
5 | * @version V1.4.0
6 | * @date 09/24/2010
7 | * @brief This file contains all the functions prototypes for the IRTIM firmware
8 | * library.
9 | ******************************************************************************
10 | * @copy
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2010 STMicroelectronics
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM8L15x_IRTIM_H
24 | #define __STM8L15x_IRTIM_H
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "stm8l15x.h"
28 |
29 | /** @addtogroup STM8L15x_StdPeriph_Driver
30 | * @{
31 | */
32 |
33 | /* Exported variables ------------------------------------------------------- */
34 | /* Exported types ------------------------------------------------------------*/
35 | /* Exported constants --------------------------------------------------------*/
36 | /* Exported macros -----------------------------------------------------------*/
37 | /* Private macros ------------------------------------------------------------*/
38 | /* Exported functions --------------------------------------------------------*/
39 |
40 | /** @addtogroup IRTIM_Exported_Functions
41 | * @{
42 | */
43 |
44 | void IRTIM_DeInit(void);
45 | void IRTIM_Cmd(FunctionalState NewState);
46 | FunctionalState IRTIM_GetStatus(void);
47 | void IRTIM_HighSinkODCmd(FunctionalState NewState);
48 | FunctionalState IRTIM_GetHighSinkODStatus(void);
49 |
50 |
51 | /**
52 | * @}
53 | */
54 | #endif /* __STM8L15x_IRTIM_H */
55 |
56 | /**
57 | * @}
58 | */
59 |
60 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
61 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Tamper1Detection/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file RTC/RTC_Tamper1Detection/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Header for main.c
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 | #include "stm8_eval.h"
35 | #include "stm8_eval_lcd.h"
36 | #include "stdio.h"
37 |
38 | /* Exported types ------------------------------------------------------------*/
39 | /* Exported constants --------------------------------------------------------*/
40 | #define EnterSafeCode() disableInterrupts()
41 | #define ExitSafeCode() enableInterrupts()
42 | #define ASCII_NUM_0 ((uint8_t)48)
43 | #define SHOW_POINT1 ((uint8_t)0)
44 | #define SHOW_POINT2 ((uint8_t)9)
45 | #define CHARPOS ((uint8_t)13)
46 |
47 | /* Exported functions ------------------------------------------------------- */
48 | void Calendar_Init(void);
49 | void Tamper_Init(void);
50 | void EvalBoard_Init(void);
51 | void Time_Show(uint8_t Line,uint8_t pos);
52 | void Time_SaveCurrentTime(uint8_t SavedTimeId);
53 | void Time_Record(void);
54 | void Tamper_DelayShow(uint8_t DelayId );
55 | void SavedTime_Show(uint8_t Line, uint8_t SavedTimeId);
56 | void Delay(__IO uint32_t nCount);
57 |
58 | #endif /* __MAIN_H */
59 |
60 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
61 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Calendar/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file RTC/RTC_Calendar/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Header for main.c
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 | #include "stm8_eval.h"
35 | #include "stm8_eval_lcd.h"
36 | #include "stdio.h"
37 |
38 | /* Exported types ------------------------------------------------------------*/
39 | /* Exported constants --------------------------------------------------------*/
40 | /* Exported functions ------------------------------------------------------- */
41 | void Calendar_Init(void);
42 | void Time_Regulate(void);
43 | void Time_Show(uint8_t Line);
44 | void Date_Regulate(void);
45 | void Date_Show(void);
46 | void Alarm_Regulate(void);
47 | uint16_t DayOfWeek(uint16_t nYear, uint16_t nMonth, uint16_t nDay);
48 | uint16_t CountOfFeb29(uint16_t nYear);
49 | bool IsLeapYear(uint16_t nYear);
50 | uint8_t ReadDigit(uint8_t* ptr, uint8_t ColBegin, uint8_t ValueMax, uint8_t ValueMin) ;
51 | void SetCursorPosition(uint8_t* ptr, uint8_t Line, uint8_t Offset);
52 | void ToggleCursorPosition(uint8_t* ptr, uint8_t Line, uint8_t Offset);
53 | JOYState_TypeDef ReadJoystick(void);
54 | void LSE_StabTime(void);
55 | void Delay(__IO uint32_t nCount);
56 |
57 | #endif /* __MAIN_H */
58 |
59 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
60 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # MCU_Experiments
2 |
3 | Amazing experiments with microcontroller STM8L151 using an [STM8L-Discovery development board](https://www.st.com/en/evaluation-tools/stm8l-discovery.html), [Jupyter Notebook](https://jupyter.org/), [OpenOCD](http://openocd.org/) and [**REMCU lib**](https://remotemcu.com)
4 |
5 | ### stm8l_discovery_GPIO_Toggle
6 | It is a sample of working wit GPIO of STM8L-Discovery board.
7 |
8 | ### stm8l_discovery_LCD_example
9 | It is a sample of working wit LCD screen of STM8L-Discovery board. You can use the
10 | ```cpp
11 | void LCD_print(std::string str);
12 | ```
13 | function and print a message on the LCD screen.
14 |
15 | 
16 |
17 | ### stm8l_discovery-DMA
18 | It is a sample that demonstrates how to use the Direct Memory Access (DMA) in the STM8L. It is provided that shows how to use the DMA with the ADC and DAC using the various transfer modes of the DMA. This notebook capture ADC data on PC7 pin of STM8L-Discovery and generate a table siganl on PF0 pin using the DAC module of STM8L-Discovery simultaneously.
19 |
20 | Russian description : https://habr.com/ru/post/486598/
21 |
22 | English description : in proccess... Perhaps [**REMCU tutorial**](https://remotemcu.com/tutorials) can help you run these notebooks.
23 |
24 | ## Prerequirements
25 | ### Hardware
26 | * MacOS or Linux x64 computer or virtual machine.
27 | * An [STM8L-Discovery development board](https://www.st.com/en/evaluation-tools/stm8l-discovery.html) or another board with STM8L151
28 | * ST-Link device. It is a programmer and debugger for STM8 and STM32 chips.
29 | 
30 | * 4 wires to connect ST-Link with STM8L-Discovery and USB cable to connect the Discovery board with your PC.
31 | * An oscilloscope to display analog waves and a signal generator for ADC testing. It is optional.
32 |
33 |
34 | ### Software
35 | * [Anaconda Distribution](https://www.anaconda.com/distribution/) with install [xeus-cling](https://github.com/jupyter-xeus/xeus-cling) and [xplot](https://github.com/QuantStack/xplot) packages.
36 | * OpenOCD prebuild [package](https://github.com/ilg-archived/openocd/releases/tag/v0.10.0-12-20190422)
37 | * REMCU library for STM8L151. Download the necessary version of REMCU Lib from [**download page**](https://remotemcu.com/download):
38 | Target - **STM8L152C6**
39 | Library - **StdPeriph_Lib**
40 | Version - **1.4.0**
41 | Operation system - **MacOS/Linux**
42 | 
43 |
44 | ## Prepare
45 | Connect the st-link to the development board using the scheme:
46 | 
47 | Connect the st-link to PC
48 | Run OpenOCD utility:
49 | ""
50 |
51 | ## Running
52 | Execute notebook cells and look at the results
53 | 
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/src/main.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file Project/Template/main.c
4 | * @author MCD Application Team
5 | * @version V1.3.0
6 | * @date 07/14/2010
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDIN THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Includes ------------------------------------------------------------------*/
22 | #include "stm8l15x.h"
23 |
24 | /** @addtogroup Template
25 | * @{
26 | */
27 |
28 | /* Private typedef -----------------------------------------------------------*/
29 | /* Private define ------------------------------------------------------------*/
30 | /* Private macro -------------------------------------------------------------*/
31 | /* Private variables ---------------------------------------------------------*/
32 | /* Private function prototypes -----------------------------------------------*/
33 |
34 | /* Private functions ---------------------------------------------------------*/
35 |
36 | /**
37 | * @brief Main program.
38 | * @param None
39 | * @retval None
40 | */
41 | void main(void)
42 | {
43 | /* Infinite loop */
44 | while (1)
45 | {
46 | }
47 | }
48 |
49 | /**
50 | * @brief Inserts a delay time.
51 | * @param nCount: specifies the delay time length.
52 | * @retval None
53 | */
54 |
55 | #ifdef USE_FULL_ASSERT
56 |
57 | /**
58 | * @brief Reports the name of the source file and the source line number
59 | * where the assert_param error has occurred.
60 | * @param file: pointer to the source file name
61 | * @param line: assert_param error line source number
62 | * @retval None
63 | */
64 | void assert_failed(uint8_t* file, uint32_t line)
65 | {
66 | /* User can add his own implementation to report the file name and line number,
67 | ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
68 |
69 | /* Infinite loop */
70 | while (1)
71 | {
72 | }
73 | }
74 | #endif
75 |
76 | /**
77 | * @}
78 | */
79 |
80 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x_wwdg.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm8l15x_wwdg.h
4 | * @author MCD Application Team
5 | * @version V1.4.0
6 | * @date 09/24/2010
7 | * @brief This file contains all the functions prototypes for the WWDG firmware
8 | * library.
9 | ******************************************************************************
10 | * @copy
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2010 STMicroelectronics
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM8L15x_WWDG_H
24 | #define __STM8L15x_WWDG_H
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "stm8l15x.h"
28 |
29 | /** @addtogroup STM8L15x_StdPeriph_Driver
30 | * @{
31 | */
32 |
33 | /* Exported variables ------------------------------------------------------- */
34 | /* Exported types ------------------------------------------------------------*/
35 | /* Private macros ------------------------------------------------------------*/
36 |
37 | /** @addtogroup WWDG_Private_Macros
38 | * @{
39 | */
40 |
41 | /**
42 | * @brief Macro used by the assert function in order to check the
43 | * values of the window register.
44 | */
45 | #define IS_WWDG_WINDOW_LIMIT_VALUE(WindowLimitValue) ((WindowLimitValue) <= 0x7F)
46 |
47 | /**
48 | * @brief Macro used by the assert function in order to check the different
49 | * values of the counter register.
50 | */
51 | #define IS_WWDG_COUNTER_VALUE(CounterValue) ((CounterValue) <= 0x7F)
52 |
53 | /**
54 | * @}
55 | */
56 |
57 | /* Exported types ------------------------------------------------------------*/
58 |
59 | /* Exported functions ------------------------------------------------------- */
60 |
61 | /** @addtogroup WWDG_Exported_Functions
62 | * @{
63 | */
64 |
65 | void WWDG_Init(uint8_t Counter, uint8_t WindowValue);
66 | void WWDG_Enable(uint8_t Counter);
67 | void WWDG_SetCounter(uint8_t Counter);
68 | uint8_t WWDG_GetCounter(void);
69 | void WWDG_SWReset(void);
70 | void WWDG_SetWindowValue(uint8_t WindowValue);
71 |
72 |
73 | /**
74 | * @}
75 | */
76 |
77 | #endif /* __STM8L15x_WWDG_H */
78 |
79 | /**
80 | * @}
81 | */
82 |
83 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_ChronoSubSecond/main.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file RTC/RTC_ChronoSubSecond/main.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Header for main.c
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __MAIN_H
30 | #define __MAIN_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 | #include "stm8_eval.h"
35 | #include "stm8_eval_lcd.h"
36 | #include "stdio.h"
37 | /* Exported types ------------------------------------------------------------*/
38 | /* Exported constants --------------------------------------------------------*/
39 | #define MAXSAVETIME ((uint8_t) 9)
40 | #define EnterSafeCode() disableInterrupts()
41 | #define ExitSafeCode() enableInterrupts()
42 | #define ASCII_NUM_0 ((uint8_t)48)
43 | #define SHOW_POINT ((uint8_t)2)
44 | #define DEFAULTDISPLAY "Chrono Running "
45 | #define CHRONOATZERO " 00:00:00:000 "
46 | #define RESETDISPLAY " SEL to Run "
47 | #define PAUSELED LED1
48 | #define RUNLED LED2
49 | #define RECORDLED LED3
50 |
51 | /* Exported functions ------------------------------------------------------- */
52 |
53 |
54 | void Calendar_Init(void);
55 | void Tamper_Init(void);
56 | void EvalBoard_Init(void);
57 |
58 | void Time_Show(uint8_t Line);
59 | void Time_SaveCurrentTime(uint8_t SavedTimeId);
60 | void Time_Pause(void);
61 | void Time_Record(void);
62 | void Time_ResetMenu(void);
63 | void Time_Reset(void);
64 |
65 | void SavedTime_Show(uint8_t Line, uint8_t SavedTimeId);
66 | void SavedTime_Parsing(void);
67 | void SavedTime_Erase(void);
68 |
69 | void Restore_LastDisplay(void);
70 | JOYState_TypeDef ReadJoystick(void);
71 | void Delay(__IO uint32_t nCount);
72 |
73 | #endif /* __MAIN_H */
74 |
75 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
76 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/EWSTM8/settings/workspace.wsdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | project/Debug
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 278272727
16 | 100
17 | 2068718345
18 |
19 |
20 | TabID-25099-10414BuildBuild0TabID-11658-11262WorkspaceWorkspaceprojectproject/STM8L15x_StdPeriph_Driverproject/STM8L15x_StdPeriph_Driver/incproject/STM8L15x_StdPeriph_Driver/srcproject/Userproject/User/incproject/User/src0
21 |
22 |
23 |
24 |
25 |
26 | TextEditor$WS_DIR$\..\..\..\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x.h63818871887TextEditor$WS_DIR$\..\src\main.c0652398239810100000010000001
27 |
28 |
29 |
30 |
31 |
32 |
33 | iaridepm.enu1-2-2430352-2-2236200247379335008371069723618-2-2123956-2-29581251004193209380247379335008
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/src/delay.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file delay.c
4 | * @author Microcontroller Division
5 | * @version V1.2.0
6 | * @date 09/2010
7 | * @brief delay functions
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Includes ------------------------------------------------------------------*/
22 |
23 | #include "stm8l15x_clk.h"
24 | /**
25 | * @brief delay for some time in ms unit
26 | * @caller auto_test
27 | * @param n_ms is how many ms of time to delay
28 | * @retval None
29 | */
30 | void delay_ms(u16 n_ms)
31 | {
32 | /* Init TIMER 4 */
33 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM4, ENABLE);
34 |
35 | /* Init TIMER 4 prescaler: / (2^6) = /64 */
36 | TIM4->PSCR = 6;
37 |
38 | /* HSI div by 1 --> Auto-Reload value: 16M / 64 = 1/4M, 1/4M / 1k = 250*/
39 | TIM4->ARR = 250;
40 |
41 | /* Counter value: 2, to compensate the initialization of TIMER*/
42 | TIM4->CNTR = 2;
43 |
44 | /* clear update flag */
45 | TIM4->SR1 &= ~TIM4_SR1_UIF;
46 |
47 | /* Enable Counter */
48 | TIM4->CR1 |= TIM4_CR1_CEN;
49 |
50 | while(n_ms--)
51 | {
52 | while((TIM4->SR1 & TIM4_SR1_UIF) == 0) ;
53 | TIM4->SR1 &= ~TIM4_SR1_UIF;
54 | }
55 |
56 | /* Disable Counter */
57 | TIM4->CR1 &= ~TIM4_CR1_CEN;
58 | }
59 |
60 | /**
61 | * @brief delay for some time in 10us unit(partial accurate)
62 | * @caller auto_test
63 | * @param n_10us is how many 10us of time to delay
64 | * @retval None
65 | */
66 | void delay_10us(u16 n_10us)
67 | {
68 | /* Init TIMER 4 */
69 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM4, ENABLE);
70 |
71 | /* prescaler: / (2^0) = /1 */
72 | TIM4->PSCR = 0;
73 |
74 | /* SYS_CLK_HSI_DIV1 Auto-Reload value: 16M / 1 = 16M, 16M / 100k = 160 */
75 | TIM4->ARR = 160;
76 |
77 | /* Counter value: 10, to compensate the initialization of TIMER */
78 | TIM4->CNTR = 10;
79 |
80 | /* clear update flag */
81 | TIM4->SR1 &= ~TIM4_SR1_UIF;
82 |
83 | /* Enable Counter */
84 | TIM4->CR1 |= TIM4_CR1_CEN;
85 |
86 | while(n_10us--)
87 | {
88 | while((TIM4->SR1 & TIM4_SR1_UIF) == 0) ;
89 | TIM4->SR1 &= ~TIM4_SR1_UIF;
90 | }
91 |
92 | /* Disable Counter */
93 | TIM4->CR1 &= ~TIM4_CR1_CEN;
94 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM4, DISABLE);
95 |
96 | }
97 |
98 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
99 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/AES/AES_KeyDerivation/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page AES_KeyDerivation Use AES to derivate the encryption key
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file AES/AES_KeyDerivation/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the AES key derivation example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the AES hardware
30 | accelerator to perform key derivation. Using this mode avoids to re-perform
31 | key derivation when processing multiple data-block.
32 | This example is a basic example using polling on flag: neither interrupt
33 | nor DMA capability is used.
34 |
35 | @par Directory contents
36 |
37 | - AES/AES_KeyDerivation/main.c Main file
38 | - AES/AES_KeyDerivation/stm8l15x_conf.h Library Configuration file
39 | - AES/AES_KeyDerivation/stm8l15x_it.c Interrupt routines source
40 | - AES/AES_KeyDerivation/stm8l15x_it.h Interrupt routines declaration
41 |
42 |
43 | @par Hardware and Software environment
44 |
45 | - This example runs on STM8L15x High-Density Devices with built-in AES peripheral.
46 |
47 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
48 | evaluation board and can be easily tailored to any other development board.
49 |
50 | - STM8L1528-EVAL Set-up
51 | - Make sure that the LCD glass daughter board is mounted in IO position.
52 | For more details please refer to the evaluation board user manual.
53 | - LED1 and LED3
54 |
55 | @par How to use it ?
56 |
57 | In order to make the program work, you must do the following :
58 |
59 | - Copy all source files from this example folder to the template folder under
60 | Project\STM8L15x_StdPeriph_Template
61 | - Open your preferred toolchain
62 | - Choose STM8L15X_HD(STM8L15xx8_16xx8) project
63 | - Add the required file :
64 | - stm8_eval.c (under Utilities\STM8_EVAL)
65 | - Rebuild all files and load your image into target memory
66 | - Run the example
67 | - If green led LED1 is ON, key is successfully derived.
68 | - If red led LED3 is ON, an error occurs while deriving key.
69 |
70 |
71 |
72 | * © COPYRIGHT STMicroelectronics
73 | */
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/AES/AES_EncryptDecrypt/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page AES_EncryptDecrypt Use AES to encrypt then to decrypt data
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file AES/AES_EncryptDecrypt/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the AES encryption decryption example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to configure the AES hardware
30 | accelerator to encrypt then to decrypt text and to check that decrypted text
31 | corresponds to the original text.
32 | This example is a basic example using polling on flag, neither interrupt
33 | nor DMA capability are used.
34 |
35 | @par Directory contents
36 |
37 | - AES/AES_EncryptDecrypt/main.c Main file
38 | - AES/AES_EncryptDecrypt/stm8l15x_conf.h Library Configuration file
39 | - AES/AES_EncryptDecrypt/stm8l15x_it.c Interrupt routines source
40 | - AES/AES_EncryptDecrypt/stm8l15x_it.h Interrupt routines declaration
41 |
42 |
43 | @par Hardware and Software environment
44 |
45 | - This example runs on STM8L15x High-Density Devices with built-in AES peripheral.
46 |
47 | - This example has been tested with STMicroelectronics STM8L1528-EVAL evaluation
48 | board and can be easily tailored to any other development board.
49 |
50 | - STM8L1528-EVAL Set-up
51 | - Make sure that the LCD glass daughter board is mounted in IO position.
52 | For more details please refer to the evaluation board user manual.
53 | - LED1 and LED3
54 |
55 |
56 | @par How to use it ?
57 |
58 | In order to make the program work, you must do the following :
59 |
60 | - Copy all source files from this example folder to the template folder under
61 | Project\STM8L15x_StdPeriph_Template
62 | - Open your preferred toolchain
63 | - Choose STM8L15X_HD(STM8L15xx8_16xx8) project
64 | - Add the required file :
65 | - stm8_eval.c (under Utilities\STM8_EVAL)
66 | - Rebuild all files and load your image into target memory
67 | - Run the example
68 | - If green led LED1 is ON, text is successfully encrypted then decrypted.
69 | - If red led LED3 is ON, an error occurs while encrypting or decrypting.
70 |
71 |
72 |
73 | * © COPYRIGHT STMicroelectronics
74 | */
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/src/delay.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file delay.c
4 | * @author Microcontroller Division
5 | * @version V1.1.0
6 | * @date 08/2010
7 | * @brief delay functions
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Includes ------------------------------------------------------------------*/
22 |
23 | #include "stm8l15x_clk.h"
24 | /**
25 | * @brief delay for some time in ms unit
26 | * @caller auto_test
27 | * @param n_ms is how many ms of time to delay
28 | * @retval None
29 | */
30 | void delay_ms(u16 n_ms)
31 | {
32 | /* Init TIMER 4 */
33 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM2, ENABLE);
34 |
35 | /* Init TIMER 4 prescaler: / (2^6) = /64 */
36 | TIM2->PSCR = 6;
37 |
38 | /* HSI div by 1 --> Auto-Reload value: 16M / 64 = 1/4M, 1/4M / 1k = 250*/
39 | TIM2->ARRH = 0;
40 | TIM2->ARRL = 250;
41 |
42 | /* Counter value: 2, to compensate the initialization of TIMER*/
43 |
44 | TIM2->CNTRH = 0;
45 | TIM2->CNTRL = 2;
46 |
47 | /* clear update flag */
48 | TIM2->SR1 &= ~TIM_SR1_UIF;
49 |
50 | /* Enable Counter */
51 | TIM2->CR1 |= TIM_CR1_CEN;
52 |
53 | while(n_ms--)
54 | {
55 | while((TIM2->SR1 & TIM_SR1_UIF) == 0) ;
56 | TIM2->SR1 &= ~TIM_SR1_UIF;
57 | }
58 |
59 | /* Disable Counter */
60 | TIM2->CR1 &= ~TIM_CR1_CEN;
61 | }
62 |
63 | /**
64 | * @brief delay for some time in 10us unit(partial accurate)
65 | * @caller auto_test
66 | * @param n_10us is how many 10us of time to delay
67 | * @retval None
68 | */
69 | void delay_10us(u16 n_10us)
70 | {
71 | /* Init TIMER 4 */
72 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM2, ENABLE);
73 |
74 | /* prescaler: / (2^0) = /1 */
75 | TIM2->PSCR = 0;
76 |
77 | /* SYS_CLK_HSI_DIV1 Auto-Reload value: 16M / 1 = 16M, 16M / 100k = 160 */
78 | TIM2->ARRH = 0;
79 | TIM2->ARRL = 160;
80 |
81 | /* Counter value: 10, to compensate the initialization of TIMER */
82 | TIM2->CNTRH = 0;
83 | TIM2->CNTRL = 10;
84 |
85 | /* clear update flag */
86 | TIM2->SR1 &= ~TIM_SR1_UIF;
87 |
88 | /* Enable Counter */
89 | TIM2->CR1 |= TIM_CR1_CEN;
90 |
91 | while(n_10us--)
92 | {
93 | while((TIM2->SR1 & TIM_SR1_UIF) == 0) ;
94 | TIM2->SR1 &= ~TIM_SR1_UIF;
95 | }
96 |
97 | /* Disable Counter */
98 | TIM2->CR1 &= ~TIM_CR1_CEN;
99 | CLK_PeripheralClockConfig(CLK_Peripheral_TIM2, DISABLE);
100 |
101 | }
102 |
103 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
104 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/GPIO/GPIO_Toggle/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page GPIO_Toggle Use GPIO to toggle Port Pins
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file GPIO/GPIO_Toggle/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the GPIO Toggle Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the GPIO peripheral to
30 | toggle Ports Pins infinitely.
31 |
32 |
33 | @par Directory contents
34 |
35 | - GPIO/GPIO_Toggle/main.c Main file containing the "main" function
36 | - GPIO/GPIO_Toggle/stm8l15x_conf.h Library Configuration file
37 | - GPIO/GPIO_Toggle/stm8l15x_it.c Interrupt routines source
38 | - GPIO/GPIO_Toggle/stm8l15x_it.h Interrupt routines declaration
39 |
40 |
41 | @par Hardware and Software environment
42 |
43 | - This example runs on STM8L15x High-Density, Medium-Density Plus, Medium-Density
44 | and Low-Density Devices.
45 |
46 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
47 | (STM8L15x High-Density devices) and STM8L1526-EVAL (STM8L15x Medium-Density and
48 | Low-Density devices) evaluation boards and can be easily tailored to any other
49 | development board.
50 |
51 | - STM8L1528-EVAL Set-up
52 | - Make sure that the LCD glass daughter board is mounted in IO position.
53 | For more details please refer to the evaluation board user manual.
54 | - LD1, LD2, LD3 and LD4 are already connected to PH0, PH1, PH2 and PH3
55 |
56 | - STM8L1526-EVAL Set-up
57 | - Make sure that the LCD glass daughter board is mounted in IO position.
58 | For more details please refer to the evaluation board user manual.
59 | - LD1, LD2, LD3 and LD4 are already connected to PA4, PA5, PA6 and PA7
60 |
61 | @par How to use it ?
62 |
63 | In order to make the program work, you must do the following :
64 |
65 | - Copy all source files from this example folder to the template folder under
66 | Project\STM8L15x_StdPeriph_Template
67 | - Open your preferred toolchain
68 | - Add the required file:
69 | - stm8_eval.c (Under Utilities\STM8_EVAL)
70 | - Rebuild all files and load your image into target memory
71 | - Run the example
72 |
73 |
74 | * © COPYRIGHT STMicroelectronics
75 | */
76 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/EWSTM8/settings/WavesGenerator.wsdt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | WavesGenerator/Debug
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 274272727
16 |
17 |
18 |
19 |
20 |
21 |
22 | 2067117944
23 | 21894100
24 |
25 |
26 |
27 |
28 |
29 |
30 | TabID-29748-5117
31 | Workspace
32 | Workspace
33 |
34 |
35 | WavesGenerator
36 |
37 |
38 |
39 | 0
40 |
41 |
42 | TabID-17954-5133
43 | Build
44 | Build
45 |
46 |
47 | TabID-27971-7197Debug LogDebug-Log
48 |
49 | 0
50 |
51 |
52 |
53 |
54 |
55 | TextEditor$WS_DIR$\..\..\..\Libraries\STM8L15x_StdPeriph_Driver\inc\stm8l15x.h04624852485TextEditor$WS_DIR$\..\src\main.c0174111441114410100000010000001
56 |
57 |
58 |
59 |
60 |
61 |
62 | iaridepm.enu1-2-2351348-2-2200200209644335008366876591290-2-2202956-2-29582041004193341709209644335008
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file GPIO/GPIO_Toggle/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.3.0
6 | * @date 07/14/2010
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM8L15x_CONF_H
23 | #define __STM8L15x_CONF_H
24 |
25 | /* Includes ------------------------------------------------------------------*/
26 | #include "stm8l15x.h"
27 | #ifdef __cplusplus
28 | extern "C" {
29 | #endif
30 | /* Uncomment the line below to enable peripheral header file inclusion */
31 | #include "stm8l15x_adc.h"
32 | #include "stm8l15x_beep.h"
33 | #include "stm8l15x_clk.h"
34 | #include "stm8l15x_comp.h"
35 | #include "stm8l15x_dac.h"
36 | #include "stm8l15x_dma.h"
37 | #include "stm8l15x_exti.h"
38 | #include "stm8l15x_flash.h"
39 | #include "stm8l15x_gpio.h"
40 | #include "stm8l15x_i2c.h"
41 | #include "stm8l15x_irtim.h"
42 | #include "stm8l15x_itc.h"
43 | #include "stm8l15x_iwdg.h"
44 | #include "stm8l15x_lcd.h"
45 | #include "stm8l15x_pwr.h"
46 | #include "stm8l15x_rst.h"
47 | #include "stm8l15x_rtc.h"
48 | #include "stm8l15x_spi.h"
49 | #include "stm8l15x_syscfg.h"
50 | #include "stm8l15x_tim1.h"
51 | #include "stm8l15x_tim2.h"
52 | #include "stm8l15x_tim3.h"
53 | #include "stm8l15x_tim4.h"
54 | #include "stm8l15x_usart.h"
55 | #include "stm8l15x_wfe.h"
56 | #include "stm8l15x_wwdg.h"
57 |
58 | #ifdef __cplusplus
59 | }
60 | #endif
61 | /* Exported types ------------------------------------------------------------*/
62 | /* Exported constants --------------------------------------------------------*/
63 | /* Uncomment the line below to expanse the "assert_param" macro in the
64 | Standard Peripheral Library drivers code */
65 | /* #define USE_FULL_ASSERT (1) */
66 |
67 | /* Exported macro ------------------------------------------------------------*/
68 | #ifdef USE_FULL_ASSERT
69 |
70 | /**
71 | * @brief The assert_param macro is used for function's parameters check.
72 | * @param expr: If expr is false, it calls assert_failed function
73 | * which reports the name of the source file and the source
74 | * line number of the call that failed.
75 | * If expr is true, it returns no value.
76 | * @retval : None
77 | */
78 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
79 | /* Exported functions ------------------------------------------------------- */
80 | void assert_failed(uint8_t* file, uint32_t line);
81 | #else
82 | #define assert_param(expr) ((void)0)
83 | #endif /* USE_FULL_ASSERT */
84 |
85 | #endif /* __STM8L15x_CONF_H */
86 |
87 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
88 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Libraries/STM8L15x_StdPeriph_Driver/inc/stm8l15x_rst.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file stm8l15x_rst.h
4 | * @author MCD Application Team
5 | * @version V1.4.0
6 | * @date 09/24/2010
7 | * @brief This file contains all the functions prototypes for the RST firmware
8 | * library.
9 | ******************************************************************************
10 | * @copy
11 | *
12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 | *
19 | * © COPYRIGHT 2010 STMicroelectronics
20 | */
21 |
22 | /* Define to prevent recursive inclusion -------------------------------------*/
23 | #ifndef __STM8L15x_RST_H
24 | #define __STM8L15x_RST_H
25 |
26 | /* Includes ------------------------------------------------------------------*/
27 | #include "stm8l15x.h"
28 |
29 | /** @addtogroup STM8L15x_StdPeriph_Driver
30 | * @{
31 | */
32 |
33 | /* Exported variables ------------------------------------------------------- */
34 | /* Exported types ------------------------------------------------------------*/
35 | /** @addtogroup RST_Exported_Types
36 | * @{
37 | */
38 |
39 | /**
40 | * @brief RST Flag possible values
41 | */
42 | typedef enum {
43 | RST_FLAG_PORF = (uint8_t)0x01, /*!< POR reset flag */
44 | RST_FLAG_SWIMF = (uint8_t)0x08, /*!< SWIM reset flag */
45 | RST_FLAG_ILLOPF = (uint8_t)0x04, /*!< Illigal opcode reset flag */
46 | RST_FLAG_IWDGF = (uint8_t)0x02, /*!< Independent watchdog reset flag */
47 | RST_FLAG_WWDGF = (uint8_t)0x10, /*!< Window watchdog reset flag */
48 | RST_FLAG_BORF = (uint8_t)0x20 /*!< BOR reset flag */
49 | } RST_FLAG_TypeDef;
50 |
51 | /**
52 | * @}
53 | */
54 |
55 | /* Exported constants --------------------------------------------------------*/
56 | /* Exported macros -----------------------------------------------------------*/
57 | /* Private macros ------------------------------------------------------------*/
58 |
59 | /** @addtogroup RST_Private_Macros
60 | * @{
61 | */
62 |
63 | /**
64 | * @brief Macro used by the assert function to check the different functions parameters.
65 | */
66 | /**
67 | * @brief Macro used by the assert function to check the different RST flags.
68 | */
69 | #define IS_RST_FLAG(FLAG) (((FLAG) == RST_FLAG_PORF) || ((FLAG) == RST_FLAG_BORF) || \
70 | ((FLAG) == RST_FLAG_IWDGF) || ((FLAG) == RST_FLAG_ILLOPF) || \
71 | ((FLAG) == RST_FLAG_WWDGF) || ((FLAG) == RST_FLAG_SWIMF))
72 | /**
73 | * @}
74 | */
75 |
76 |
77 | /* Exported functions ------------------------------------------------------- */
78 | /** @addtogroup RST_Exported_Functions
79 | * @{
80 | */
81 | FlagStatus RST_GetFlagStatus(RST_FLAG_TypeDef RST_Flag);
82 | void RST_ClearFlag(RST_FLAG_TypeDef RST_Flag);
83 | void RST_GPOutputEnable(void);
84 |
85 | /**
86 | * @}
87 | */
88 |
89 | #endif /* __STM8L15x_RST_H */
90 |
91 | /**
92 | * @}
93 | */
94 |
95 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
96 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM4/TIM4_TimeBase/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page TIM4_TimeBase Use the TIM4 peripheral to generate 1 ms time base using TIM4 update interrupt
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file TIM4/TIM4_TimeBase/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the TIM4 Time Base Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the TIM4 peripheral
30 | to generate time base equal to 1 ms. In this example a "Delay" function is
31 | implemented based on the TIM4 time base.
32 | The four LEDs LD1..LD4 toggle with a timing defined by the Delay function.
33 |
34 | The TIM4CLK frequency is 16MHz, the Prescaler is 128 so the TIM4 counter
35 | clock is 125 KHz.
36 | The TIM4 is running at TIM4 frequency = TIM4 counter clock / (TIM4_PERIOD + 1)
37 | = 125000 / 125 = 1 KHz.
38 | So the TIM4 generates an Update Interrupt each 1 / 1000 = 1 ms.
39 |
40 |
41 | @par Directory contents
42 |
43 | - TIM4/TIM4_TimeBase/main.c Main file containing the "main" function
44 | - TIM4/TIM4_TimeBase/stm8l15x_conf.h Library Configuration file
45 | - TIM4/TIM4_TimeBase/stm8l15x_it.c Interrupt routines source
46 | - TIM4/TIM4_TimeBase/stm8l15x_it.h Interrupt routines declaration
47 |
48 |
49 | @par Hardware and Software environment
50 |
51 | - This example runs on STM8L15x High-Density, Medium-Density Plus, Medium-Density
52 | and Low-Density Devices.
53 |
54 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
55 | (STM8L15x High-Density devices) and STM8L1526-EVAL (STM8L15x Medium-Density and
56 | Low-Density devices) evaluation boards and can be easily tailored to any other
57 | development board.
58 |
59 | - STM8L1526-EVAL and STM8L1528-EVAL Set-up
60 | - Make sure that the LCD glass daughter board is mounted in IO position.
61 | For more details please refer to the evaluation board user manual.
62 | - Four leds LD1..LD4
63 |
64 |
65 | @par How to use it ?
66 |
67 | In order to make the program work, you must do the following :
68 |
69 | - Copy all source files from this example folder to the template folder under
70 | Project\STM8L15x_StdPeriph_Template
71 | - Open your preferred toolchain
72 | - Add the required file:
73 | - stm8_eval.c (under Utilities\STM8_EVAL)
74 | - Rebuild all files and load your image into target memory
75 | - Run the example
76 |
77 |
78 |
79 | * © COPYRIGHT STMicroelectronics
80 | */
81 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Discover/inc/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file Project/Template/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V0.0.3
6 | * @date 07/21/2009
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2009 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM8L15x_CONF_H
23 | #define __STM8L15x_CONF_H
24 |
25 | /* Includes ------------------------------------------------------------------*/
26 | #include "stm8l15x.h"
27 | #include "icc_measure.h"
28 |
29 | /* Uncomment the line below to enable peripheral header file inclusion */
30 | /* #include "stm8l15x_adc.h" */
31 | /* #include "stm8l15x_beep.h" */
32 | #include "stm8l15x_clk.h"
33 | /* #include "stm8l15x_comp.h" */
34 | /* #include "stm8l15x_dac.h" */
35 | /* #include "stm8l15x_dma.h" */
36 | #include "stm8l15x_exti.h"
37 | #include "stm8l15x_flash.h"
38 | #include "stm8l15x_gpio.h"
39 | /* #include "stm8l15x_i2c.h" */
40 | /* #include "stm8l15x_irtim.h" */
41 | /* #include "stm8l15x_itc.h" */
42 | /* #include "stm8l15x_iwdg.h" */
43 | #include "stm8l15x_lcd.h"
44 | /* #include "stm8l15x_pwr.h" */
45 | /* #include "stm8l15x_rst.h" */
46 | #include "stm8l15x_rtc.h"
47 | /* #include "stm8l15x_spi.h" */
48 | /* #include "stm8l15x_syscfg.h" */
49 | /* #include "stm8l15x_tim1.h" */
50 | /* #include "stm8l15x_tim2.h" */
51 | /* #include "stm8l15x_tim3.h" */
52 | #include "stm8l15x_tim4.h"
53 | /* #include "stm8l15x_usart.h"*/
54 | /* #include "stm8l15x_wfe.h" */
55 | /* #include "stm8l15x_wwdg.h" */
56 |
57 | /* Exported types ------------------------------------------------------------*/
58 | /* Exported constants --------------------------------------------------------*/
59 | /* Uncomment the line below to expanse the "assert_param" macro in the
60 | Standard Peripheral Library drivers code */
61 | /* #define USE_FULL_ASSERT (1) */
62 |
63 | /* Exported macro ------------------------------------------------------------*/
64 | #ifdef USE_FULL_ASSERT
65 |
66 | /**
67 | * @brief The assert_param macro is used for function's parameters check.
68 | * @param expr: If expr is false, it calls assert_failed function
69 | * which reports the name of the source file and the source
70 | * line number of the call that failed.
71 | * If expr is true, it returns no value.
72 | * @retval : None
73 | */
74 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
75 | /* Exported functions ------------------------------------------------------- */
76 | void assert_failed(uint8_t* file, uint32_t line);
77 | #else
78 | #define assert_param(expr) ((void)0)
79 | #endif /* USE_FULL_ASSERT */
80 |
81 | #endif /* __STM8L15x_CONF_H */
82 |
83 | /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
84 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/Project_template/inc/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file GPIO/GPIO_Toggle/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.3.0
6 | * @date 07/14/2010
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM8L15x_CONF_H
23 | #define __STM8L15x_CONF_H
24 |
25 | /* Includes ------------------------------------------------------------------*/
26 | #include "stm8l15x.h"
27 |
28 | /* Uncomment the line below to enable peripheral header file inclusion */
29 | /* #include "stm8l15x_adc.h" */
30 | /* #include "stm8l15x_beep.h" */
31 | /* #include "stm8l15x_clk.h" */
32 | /* #include "stm8l15x_comp.h" */
33 | /* #include "stm8l15x_dac.h" */
34 | /* #include "stm8l15x_dma.h" */
35 | /* #include "stm8l15x_exti.h" */
36 | /* #include "stm8l15x_flash.h" */
37 | /* #include "stm8l15x_gpio.h" */
38 | /* #include "stm8l15x_i2c.h" */
39 | /* #include "stm8l15x_irtim.h" */
40 | /* #include "stm8l15x_itc.h" */
41 | /* #include "stm8l15x_iwdg.h" */
42 | /* #include "stm8l15x_lcd.h" */
43 | /* #include "stm8l15x_pwr.h" */
44 | /* #include "stm8l15x_rst.h" */
45 | /* #include "stm8l15x_rtc.h" */
46 | /* #include "stm8l15x_spi.h"*/
47 | /* #include "stm8l15x_syscfg.h" */
48 | /* #include "stm8l15x_tim1.h" */
49 | /* #include "stm8l15x_tim2.h" */
50 | /* #include "stm8l15x_tim3.h" */
51 | /* #include "stm8l15x_tim4.h" */
52 | /* #include "stm8l15x_usart.h" */
53 | /* #include "stm8l15x_wfe.h" */
54 | /* #include "stm8l15x_wwdg.h" */
55 |
56 | /* Exported types ------------------------------------------------------------*/
57 | /* Exported constants --------------------------------------------------------*/
58 | /* Uncomment the line below to expanse the "assert_param" macro in the
59 | Standard Peripheral Library drivers code */
60 | /* #define USE_FULL_ASSERT (1) */
61 |
62 | /* Exported macro ------------------------------------------------------------*/
63 | #ifdef USE_FULL_ASSERT
64 |
65 | /**
66 | * @brief The assert_param macro is used for function's parameters check.
67 | * @param expr: If expr is false, it calls assert_failed function
68 | * which reports the name of the source file and the source
69 | * line number of the call that failed.
70 | * If expr is true, it returns no value.
71 | * @retval : None
72 | */
73 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
74 | /* Exported functions ------------------------------------------------------- */
75 | void assert_failed(uint8_t* file, uint32_t line);
76 | #else
77 | #define assert_param(expr) ((void)0)
78 | #endif /* USE_FULL_ASSERT */
79 |
80 | #endif /* __STM8L15x_CONF_H */
81 |
82 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
83 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DAC/DAC_NoiseTriangleGenerator/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page DAC_NoiseTriangleGenerator Use DAC Noise and Triangle Generator feature
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file DAC/DAC_NoiseTriangleGenerator/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the DAC Noise and Triangle Generation Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the DAC peripheral
30 | to generate, automatically, Noise and Triangle waveform.
31 | By Default, DAC channel1 is generating a Triangle waveform and DAC channel2
32 | is generating a white Noise waveform with the maximum amplitude.
33 | When the user presses the LEFT button,the Triangle waveform Amplitude is decreasing.
34 | When the user presses the RIGHT button,the Noise waveform Amplitude is decreasing.
35 |
36 |
37 | @par Directory contents
38 |
39 | - DAC/DAC_Noise&TriangleGenerator/main.c Main file
40 | - DAC/DAC_Noise&TriangleGenerator/stm8l15x_conf.h Library Configuration file
41 | - DAC/DAC_Noise&TriangleGenerator/stm8l15x_it.c Interrupt routines source
42 | - DAC/DAC_Noise&TriangleGenerator/stm8l15x_it.h Interrupt routines declaration
43 |
44 | @par Hardware and Software environment
45 |
46 | - This example runs on STM8L15x High-Density devices.
47 |
48 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
49 | evaluation boards and can be easily tailored to any other development board.
50 |
51 | - STM8L1528-EVAL Set-up
52 | - Make sure that the LCD glass daughter board is mounted in IO position.
53 | For more details please refer to the evaluation board user manual.
54 | - LEFT and RIGHT Joystick push-buttons.
55 | - Make sure that jumper JP3 is removed.
56 |
57 | @par How to use it ?
58 |
59 | In order to make the program work, you must do the following :
60 |
61 | - Copy all source files from this example folder to the template folder under
62 | Project\STM8L15x_StdPeriph_Template
63 | - Open your preferred toolchain
64 | - Rebuild all files and load your image into target memory
65 | - Add the required file:
66 | - stm8_eval.c (under Utilities\STM8_EVAL)
67 | - Run the example
68 | - Connect an oscilloscope to DAC_Channel1 (PF.0) and DAC_Channel_2 (PF.1).
69 | - Press Joystick LEFT Button to change the DAC channel 1 Triangle waveform amplitude.
70 | - Press Joystick RIGHT Button to change the DAC channel 2 Noise waveform amplitude.
71 |
72 |
73 |
74 | * © COPYRIGHT STMicroelectronics
75 | */
76 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_PeriodicWakeup500ms/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page RTC_PeriodicWakeup500ms Use RTC periodic Wakeup unit to toggle leds each 500ms
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file RTC/RTC_PeriodicWakeup500ms/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the RTC Periodic (each 500ms Wakeup Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example provides a short description of how to use the RTC peripheral
30 | periodic wakeup interrupt to toggle periodically leds.
31 | In the first time, all Leds are on, and each time the periodic wake up event
32 | occurs, LED1 and LED4 toggle.
33 |
34 | @par Directory contents
35 |
36 | - RTC/RTC_PeriodicWakeup500ms/main.c Main file
37 | - RTC/RTC_PeriodicWakeup500ms/stm8l15x_conf.h Library Configuration file
38 | - RTC/RTC_PeriodicWakeup500ms/stm8l15x_it.c Interrupt routines source
39 | - RTC/RTC_PeriodicWakeup500ms/stm8l15x_it.h Interrupt routines declaration
40 |
41 |
42 | @par Hardware and Software environment
43 |
44 | - This example runs on STM8L15x High-Density, Medium-Density Plus, Medium-Density
45 | and Low-Density Devices.
46 |
47 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
48 | (STM8L15x High-Density devices) and STM8L1526-EVAL (STM8L15x Medium-Density and
49 | Low-Density devices) evaluation boards and can be easily tailored to any other
50 | development board.
51 |
52 | - STM8L1528-EVAL Set-up
53 | - Make sure that the LCD glass daughter board is mounted in IO position.
54 | For more details please refer to the evaluation board user manual.
55 | - LED1..4
56 | - External 32.768kHz LSE clock (X1)
57 | - Make sure that SB9 (Solder Bridge) is in position 2-3.
58 |
59 | - STM8L1526-EVAL Set-up
60 | - Make sure that the LCD glass daughter board is mounted in IO position.
61 | For more details please refer to the evaluation board user manual.
62 | - LED1..4
63 | - External 32.768kHz LSE clock (X2)
64 |
65 |
66 | @par How to use it ?
67 |
68 | In order to make the program work, you must do the following :
69 |
70 | - Copy all source files from this example folder to the template folder under
71 | Project\STM8L15x_StdPeriph_Template
72 | - Open your preferred toolchain
73 | - Add the required file:
74 | - stm8_eval (under Utilities\STM8_EVAL)
75 | - Rebuild all files and load your image into target memory
76 | - Run the example
77 |
78 |
79 |
80 | * © COPYRIGHT STMicroelectronics
81 | */
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/WavesGenerator/inc/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file DAC/DAC_SignalsGeneration/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.0.1
6 | * @date 02/12/2010
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @copy
10 | *
11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 | *
18 | * © COPYRIGHT 2010 STMicroelectronics
19 | */
20 |
21 | /* Define to prevent recursive inclusion -------------------------------------*/
22 | #ifndef __STM8L15x_CONF_H
23 | #define __STM8L15x_CONF_H
24 |
25 | /* Includes ------------------------------------------------------------------*/
26 | #include "stm8l15x.h"
27 |
28 | /* Uncomment the line below to enable peripheral header file inclusion */
29 | /* #include "stm8l15x_adc.h" */
30 | /* #include "stm8l15x_beep.h" */
31 | #include "stm8l15x_clk.h"
32 | /* #include "stm8l15x_comp.h" */
33 | /* #include "stm8l15x_dac.h" */
34 | /* #include "stm8l15x_dma.h" */
35 | /* #include "stm8l15x_exti.h" */
36 | /* #include "stm8l15x_flash.h" */
37 | /* #include "stm8l15x_gpio.h" */
38 | /* #include "stm8l15x_i2c.h" */
39 | /* #include "stm8l15x_irtim.h" */
40 | /* #include "stm8l15x_itc.h" */
41 | /* #include "stm8l15x_iwdg.h" */
42 | #include "stm8l15x_lcd.h"
43 | /* #include "stm8l15x_pwr.h" */
44 | /* #include "stm8l15x_rst.h" */
45 | /* #include "stm8l15x_rtc.h" */
46 | /* #include "stm8l15x_spi.h" */
47 | /* #include "stm8l15x_syscfg.h" */
48 | /* #include "stm8l15x_tim1.h" */
49 | /* #include "stm8l15x_tim2.h" */
50 | /* #include "stm8l15x_tim3.h" */
51 | /* #include "stm8l15x_tim4.h" */
52 | /* #include "stm8l15x_usart.h" */
53 | /* #include "stm8l15x_wfe.h" */
54 | /* #include "stm8l15x_wwdg.h" */
55 |
56 | /* Exported types ------------------------------------------------------------*/
57 | /* Exported constants --------------------------------------------------------*/
58 | /* Uncomment the line below to expanse the "assert_param" macro in the
59 | Standard Peripheral Library drivers code */
60 | /* #define USE_FULL_ASSERT (1) */
61 |
62 | /* Exported macro ------------------------------------------------------------*/
63 | #ifdef USE_FULL_ASSERT
64 |
65 | /**
66 | * @brief The assert_param macro is used for function's parameters check.
67 | * @param expr: If expr is false, it calls assert_failed function
68 | * which reports the name of the source file and the source
69 | * line number of the call that failed.
70 | * If expr is true, it returns no value.
71 | * @retval : None
72 | */
73 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
74 | /* Exported functions ------------------------------------------------------- */
75 | void assert_failed(uint8_t* file, uint32_t line);
76 | #else
77 | #define assert_param(expr) ((void)0)
78 | #endif /* USE_FULL_ASSERT */
79 |
80 | #endif /* __STM8L15x_CONF_H */
81 |
82 | /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
83 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/CLK/CLK_SYSCLKSwitch/readme.txt:
--------------------------------------------------------------------------------
1 | /** @page CLK_SYSCLKSwitch System clock switching between HSE, HSI, LSI and LSE
2 |
3 | @verbatim
4 | ******************** (C) COPYRIGHT 2013 STMicroelectronics *******************
5 | * @file CLK/CLK_SYSCLKSwitch/readme.txt
6 | * @author MCD Application Team
7 | * @version V1.5.2
8 | * @date 30-September-2014
9 | * @brief Description of the CLK System clock switch Example.
10 | ******************************************************************************
11 | *
12 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
13 | * You may not use this file except in compliance with the License.
14 | * You may obtain a copy of the License at:
15 | *
16 | * http://www.st.com/software_license_agreement_liberty_v2
17 | *
18 | * Unless required by applicable law or agreed to in writing, software
19 | * distributed under the License is distributed on an "AS IS" BASIS,
20 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 | * See the License for the specific language governing permissions and
22 | * limitations under the License.
23 | *
24 | ******************************************************************************
25 | @endverbatim
26 |
27 | @par Example description
28 |
29 | This example demonstrates how to switch the System clock from one source to another.
30 |
31 | To select a clock source, push the joystick as follow:
32 | - UP = HSE used as System clock source
33 | - RIGHT = HSI used as System clock source
34 | - DOWN = LSI used as System clock source
35 | - LEFT = LSE used as System clock source
36 | The selected clock source will be displayed on the LCD and the LEDs toggling
37 | frequency will be changed according to the selected clock source.
38 |
39 |
40 | @par Directory contents
41 |
42 | - CLK/CLK_SYSCLKSwitch/main.c Main file
43 | - CLK/CLK_SYSCLKSwitch/stm8l15x_conf.h Library Configuration file
44 | - CLK/CLK_SYSCLKSwitch/stm8l15x_it.c Interrupt routines source
45 | - CLK/CLK_SYSCLKSwitch/stm8l15x_it.h Interrupt routines declaration
46 |
47 |
48 | @par Hardware and Software environment
49 |
50 | - This example runs on STM8L15x High-Density, Medium-Density Plus, Medium-Density
51 | and Low-Density Devices.
52 |
53 | - This example has been tested with STMicroelectronics STM8L1528-EVAL
54 | (STM8L15x High-Density devices) and STM8L1526-EVAL (STM8L15x Medium-Density and
55 | Low-Density devices) evaluation boards and can be easily tailored to any other
56 | development board.
57 |
58 | - STM8L1528-EVAL and STM8L1526-EVAL Set-up
59 | - Make sure that the LCD glass daughter board is mounted in IO position.
60 | For more details please refer to the evaluation board user manual.
61 | - LD1..4
62 | - Joystick buttons.
63 | - Dot matrix LCD
64 |
65 | @par How to use it ?
66 |
67 | In order to make the program work, you must do the following :
68 |
69 | - Copy all source files from this example folder to the template folder under
70 | Project\STM8L15x_StdPeriph_Template
71 | - Open your preferred toolchain
72 | - Add the required files:
73 | - stm8_eval.c (under Utilities\STM8_EVAL)
74 | - stm8_eval_lcd.c (under Utilities\STM8_EVAL\Common)
75 | - timing_delay.c (under Utilities\Misc)
76 | - Rebuild all files and load your image into target memory
77 | - Run the example
78 |
79 | * © COPYRIGHT STMicroelectronics
80 | */
81 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.c:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.c
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Main program body
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Includes ------------------------------------------------------------------*/
29 | #include "stm8l15x.h"
30 | #include "stm8_eval.h"
31 | #include "main.h"
32 |
33 | /** @addtogroup STM8L15x_StdPeriph_Examples
34 | * @{
35 | */
36 |
37 | /** @addtogroup I2C_TwoBoards
38 | * @{
39 | */
40 |
41 | /** @addtogroup I2C_DataExchange
42 | * @{
43 | */
44 |
45 | /* Private typedef -----------------------------------------------------------*/
46 | /* Private define ------------------------------------------------------------*/
47 | /* Private macro -------------------------------------------------------------*/
48 | /* Private variables ---------------------------------------------------------*/
49 | /* Private function prototypes -----------------------------------------------*/
50 | /* Private functions ---------------------------------------------------------*/
51 | /* Public functions ----------------------------------------------------------*/
52 |
53 | /**
54 | * @brief Main program.
55 | * @param None
56 | * @retval None
57 | */
58 | void main(void)
59 | {
60 |
61 | /* I2C clock Enable*/
62 | CLK_PeripheralClockConfig(CLK_Peripheral_I2C1, ENABLE);
63 |
64 | /* system_clock / 1 */
65 | CLK_SYSCLKDivConfig(CLK_SYSCLKDiv_1);
66 |
67 | /* Initialize LEDs mounted on STM8L1526-EVAL board */
68 | STM_EVAL_LEDInit(LED2);
69 | STM_EVAL_LEDInit(LED3);
70 |
71 | I2C_DeInit(I2C1);
72 | /* Initialize I2C peripheral */
73 |
74 | #ifdef I2C_slave_7Bits_Address
75 | I2C_Init(I2C1, 100000, SLAVE_ADDRESS,
76 | I2C_Mode_I2C, I2C_DutyCycle_2,
77 | I2C_Ack_Enable, I2C_AcknowledgedAddress_7bit);
78 | #else
79 | I2C_Init(I2C1, 100000, SLAVE_ADDRESS,
80 | I2C_Mode_I2C, I2C_DutyCycle_2,
81 | I2C_Ack_Enable, I2C_AcknowledgedAddress_10bit);
82 | #endif
83 |
84 | /* Enable Error Interrupt*/
85 | I2C_ITConfig(I2C1, (I2C_IT_TypeDef)(I2C_IT_ERR | I2C_IT_EVT | I2C_IT_BUF), ENABLE);
86 |
87 | /* Enable general interrupts */
88 | enableInterrupts();
89 |
90 | /*Main Loop */
91 | while (1)
92 | {
93 | /* infinite loop */
94 | }
95 | }
96 |
97 | /**
98 | * @}
99 | */
100 |
101 | /**
102 | * @}
103 | */
104 |
105 | /**
106 | * @}
107 | */
108 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
109 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/ADC/ADC_DMA/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file ADC/ADC_DMA/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/ADC/ADC_IT/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file ADC/ADC_IT/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFE/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file DMA/DMA_WFE/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_WFI/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file DMA/DMA_WFI/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/PWR/PWR_WFI/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file PWR/PWR_WFI/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/SPI/SPI_MSD/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file SPI/SPI_MSD/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_EEPROM/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_EEPROM/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/SPI/SPI_FLASH/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file SPI/SPI_FLASH/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_DMA/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file TIM1/TIM1_DMA/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/COMP/COMP1_Halt/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file COMP/COMP1_Halt/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/DMA/DMA_ADCtoTIM/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file DMA/DMA_ADCtoTIM/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/GPIO/GPIO_Toggle/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file GPIO/GPIO_Toggle/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/I2C/I2C_TSENSOR/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file I2C/I2C_TSENSOR/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/IWDG/IWDG_Example/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file IWDG/IWDG_Example/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/PWR/PWR_PVD_Halt/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file PWR/PWR_PVD_Halt/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/RTC/RTC_Calendar/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file RTC/RTC_Calendar/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/SPI/SPI_SlaveDMA/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file SPI/SPI_SlaveDMA/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_6Steps/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file TIM1/TIM1_6Steps/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM1/TIM1_Synchro/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file TIM1/TIM1_Synchro/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/TIM2/TIM2_TRIGLSE/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file TIM2/TIM2_TRIGLSE/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------
/Standard_Peripheral_Library_STM8L_V1.4.0/Project/USART/USART_IrDA/stm8l15x_conf.h:
--------------------------------------------------------------------------------
1 | /**
2 | ******************************************************************************
3 | * @file USART/USART_IrDA/stm8l15x_conf.h
4 | * @author MCD Application Team
5 | * @version V1.5.2
6 | * @date 30-September-2014
7 | * @brief Library configuration file.
8 | ******************************************************************************
9 | * @attention
10 | *
11 | * © COPYRIGHT 2014 STMicroelectronics
12 | *
13 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
14 | * You may not use this file except in compliance with the License.
15 | * You may obtain a copy of the License at:
16 | *
17 | * http://www.st.com/software_license_agreement_liberty_v2
18 | *
19 | * Unless required by applicable law or agreed to in writing, software
20 | * distributed under the License is distributed on an "AS IS" BASIS,
21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 | * See the License for the specific language governing permissions and
23 | * limitations under the License.
24 | *
25 | ******************************************************************************
26 | */
27 |
28 | /* Define to prevent recursive inclusion -------------------------------------*/
29 | #ifndef __STM8L15x_CONF_H
30 | #define __STM8L15x_CONF_H
31 |
32 | /* Includes ------------------------------------------------------------------*/
33 | #include "stm8l15x.h"
34 |
35 | /* Uncomment the line below to enable peripheral header file inclusion */
36 | #include "stm8l15x_adc.h"
37 | #include "stm8l15x_aes.h"
38 | #include "stm8l15x_beep.h"
39 | #include "stm8l15x_clk.h"
40 | #include "stm8l15x_comp.h"
41 | #include "stm8l15x_dac.h"
42 | #include "stm8l15x_dma.h"
43 | #include "stm8l15x_exti.h"
44 | #include "stm8l15x_flash.h"
45 | #include "stm8l15x_gpio.h"
46 | #include "stm8l15x_i2c.h"
47 | #include "stm8l15x_irtim.h"
48 | #include "stm8l15x_itc.h"
49 | #include "stm8l15x_iwdg.h"
50 | #include "stm8l15x_lcd.h"
51 | #include "stm8l15x_pwr.h"
52 | #include "stm8l15x_rst.h"
53 | #include "stm8l15x_rtc.h"
54 | #include "stm8l15x_spi.h"
55 | #include "stm8l15x_syscfg.h"
56 | #include "stm8l15x_tim1.h"
57 | #include "stm8l15x_tim2.h"
58 | #include "stm8l15x_tim3.h"
59 | #include "stm8l15x_tim4.h"
60 | #include "stm8l15x_tim5.h"
61 | #include "stm8l15x_usart.h"
62 | #include "stm8l15x_wfe.h"
63 | #include "stm8l15x_wwdg.h"
64 |
65 | /* Exported types ------------------------------------------------------------*/
66 | /* Exported constants --------------------------------------------------------*/
67 | /* Uncomment the line below to expanse the "assert_param" macro in the
68 | Standard Peripheral Library drivers code */
69 | /* #define USE_FULL_ASSERT (1) */
70 |
71 | /* Exported macro ------------------------------------------------------------*/
72 | #ifdef USE_FULL_ASSERT
73 |
74 | /**
75 | * @brief The assert_param macro is used for function's parameters check.
76 | * @param expr: If expr is false, it calls assert_failed function
77 | * which reports the name of the source file and the source
78 | * line number of the call that failed.
79 | * If expr is true, it returns no value.
80 | * @retval : None
81 | */
82 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
83 | /* Exported functions ------------------------------------------------------- */
84 | void assert_failed(uint8_t* file, uint32_t line);
85 | #else
86 | #define assert_param(expr) ((void)0)
87 | #endif /* USE_FULL_ASSERT */
88 |
89 | #endif /* __STM8L15x_CONF_H */
90 |
91 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
92 |
--------------------------------------------------------------------------------