User Tools

Site Tools


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.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
teaching:ie0624:actividad_stm32_timer_uart [2018/10/29 20:52] – [Opcional] dgarciateaching: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_hsi_8mhz[RCC_CLOCK_64MHZ]);+    rcc_clock_setup_hsi(&rcc_hsi_configs[RCC_CLOCK_HSI_64MHZ]);
     leds_init();     leds_init();
   }   }
Line 138: Line 138:
      
     /* Reset TIM1 peripheral. */     /* Reset TIM1 peripheral. */
-    timer_reset(TIM1);+    //timer_reset(TIM1); 
 +    rcc_periph_reset_pulse(RST_TIM1);
      
     /* Timer global mode:     /* Timer global mode:
Line 235: Line 236:
 ==== Opcional ==== ==== Opcional ====
  
-En esta parte opcional se logrará reproducir una pieza simple con el STM. Necesita el STM32F3 Discovery, un buzzer, y una resistencia para limitar la correinte por el buzzer. ** O) Cuál pieza es esta? haga un video **+En esta parte opcional se logrará reproducir una pieza simple con el STM. Necesita el STM32F3 Discovery, un [[https://en.wikipedia.org/wiki/Buzzer| buzzer]], y una resistencia para limitar la corriente por el buzzer. ** O) Cuál pieza es esta? haga un video **
  
   * Cree la función ''delay'', que toma como entrada un entero y hace que el STM se espere esa cantidad de tiempo.   * Cree la función ''delay'', que toma como entrada un entero y hace que el STM se espere esa cantidad de tiempo.
Line 251: Line 252:
    * Will wait for 100 miliseconds    * Will wait for 100 miliseconds
    */    */
-  void delay(iint32_t time_ms);+  void delay(uint32_t time_ms);
      
   /*   /*
teaching/ie0624/actividad_stm32_timer_uart.1540846365.txt.gz · Last modified: 2022/09/20 00:08 (external edit)