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
    
  
  
    
  | # Based on the latest version of the alpine image | |
| FROM alpine:latest | |
| # Updates the package index and installs python3 in the alpine container | |
| RUN apk --update add python3 | |
| # Copies the hello-docker.py file to the image | |
| COPY hello-world.py /opt/ | |
| # Executes python3 with /opt/hello-docker.py as the only parameter | 
  
    
      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
    
  
  
    
  | int ReadFromFLASH(int mode, u32 addr){ | |
| u8 WRITE_ENABLE[2] = {0x06,0x00};/*Command to enable memory conf writing*/ | |
| u8 conf_QUAD[3] ={ /*Command to activate Quad Read Mode*/ | |
| 0x01, | |
| 0x43, | |
| 0x00 | |
| }; | |
| int Status,I_mode = mode; | |
| u32 adresse_to_read_from = addr; |