This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM node:8 | |
| WORKDIR / | |
| RUN git clone https://github.com/wolfcw/libfaketime.git | |
| WORKDIR /libfaketime/src | |
| RUN make install | |
| WORKDIR /usr/src/app | |
| COPY package.json ./ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """Does utterance segmentation and speech recognition on an mp3 stream | |
| (like from broadcastify...) | |
| Requires that ffmpeg be installed, and a Microsoft cognitive speech | |
| services API key | |
| (see https://azure.microsoft.com/en-us/try/cognitive-services/?api=speech-services). | |
| """ | |
| import audioop | |
| import collections | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python3 | |
| """ | |
| # STM32H7 SWO Output Solution | |
| Author: Brian Khuu 2020 | |
| Main Copy: https://gist.github.com/mofosyne/178ad947fdff0f357eb0e03a42bcef5c | |
| This generates codes that enables SWO output for STM32H7 and was tested on NUCLEO-H743ZI2. | |
| This is required because stm32h7 changed the registers that OpenOCD expects for SWO output. | |
| Best to use 400Mhz, tried lower... but had issue with getting stable uart output | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /// Enables ITM | |
| /// | |
| /// If swo_enable is true, then the SWO output pin will be enabled | |
| fn low_level_itm(dbgmcu: &stm32::DBGMCU, swo_enable: bool) { | |
| // ARMv7-M DEMCR: Set TRCENA. Enables DWT and ITM units | |
| unsafe { *(0xE000_EDFC as *mut u32) |= 1 << 24 }; | |
| // Ensure debug blocks are clocked before interacting with them | |
| dbgmcu.cr.modify(|_, w| { | |
| w.d1dbgcken() | 
OlderNewer