1 # tdse-tp4_04-led_ldr 2 3 ## Description: 4 task/task interaction. 5 LED (output) Pulse Width Modulation -> LDR (input) reading -> show values on console. 6 App - retarget_printf_to_Console 7 Project for STM32 Project (STM32CubeIDE Version: 1.7.0) 8 9 SystemCoreClock => 64MHz (15.625nS) 10 SysTick Rate Hertz => 1000 ticks per second (1mS) 11 12 app.c (app.h) 13 Endless loops, which execute tasks with fixed computing time. This 14 sequential execution is only deviated from when an interrupt event occurs. 15 16 task_adc.c (task_adc.h) 17 Initializes ADC for single conversion. The loop busy waits for a new conversion and raises a flag. 18 19 task_pwm.c (task_pwm.h) 20 Initializes PWM output on PA6. The loop waits for ADC end of conversion flag, then changes the duty cycle. 21 22 logger.h (logger.c) 23 Utilities for Retarget "printf" to Console 24 25 dwt.h 26 Utilities for Measure "clock cycle" and "execution time" of code 27 28 Special connection requirements: 29 There are no special connection requirements for this example. 30 31 Build procedures: 32 Visit the Getting started with STM32: STM32 step-by-step at 33 "https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Getting_started_with_STM32_:_STM32_step_by_step" 34 to get started building STM32 Projects. 35
