Writing /var/lib/dokuwiki/data/meta/teaching/ie0624/actividad_stm32_timer_uart.meta failed
teaching:ie0624:actividad_stm32_timer_uart
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
teaching:ie0624:actividad_stm32_timer_uart [2018/10/29 20:49] – [Opcional] dgarcia | teaching:ie0624:actividad_stm32_timer_uart [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 84: | Line 84: | ||
| | ||
void system_init(void) { | void system_init(void) { | ||
- | rcc_clock_setup_hsi(& | + | rcc_clock_setup_hsi(& |
leds_init(); | leds_init(); | ||
} | } | ||
Line 138: | Line 138: | ||
| | ||
/* Reset TIM1 peripheral. */ | /* Reset TIM1 peripheral. */ | ||
- | timer_reset(TIM1); | + | |
+ | rcc_periph_reset_pulse(RST_TIM1); | ||
| | ||
/* Timer global mode: | /* Timer global mode: | ||
Line 234: | Line 235: | ||
==== Opcional ==== | ==== Opcional ==== | ||
+ | |||
+ | En esta parte opcional se logrará reproducir una pieza simple con el STM. Necesita el STM32F3 Discovery, un [[https:// | ||
* Cree la función '' | * Cree la función '' | ||
Line 249: | Line 252: | ||
* Will wait for 100 miliseconds | * Will wait for 100 miliseconds | ||
*/ | */ | ||
- | void delay(iint32_t | + | void delay(uint32_t |
| | ||
/* | /* | ||
Line 277: | Line 280: | ||
<code C> | <code C> | ||
+ | void song(void) { | ||
tone(9, | tone(9, | ||
delay(150); | delay(150); | ||
Line 628: | Line 632: | ||
tone(9, | tone(9, | ||
delay(575); | delay(575); | ||
+ | } | ||
</ | </ | ||
===== Referencias ===== | ===== Referencias ===== |
teaching/ie0624/actividad_stm32_timer_uart.1540846151.txt.gz · Last modified: 2022/09/20 00:08 (external edit)