id
int64 0
458k
| file_name
stringlengths 4
119
| file_path
stringlengths 14
227
| content
stringlengths 24
9.96M
| size
int64 24
9.96M
| language
stringclasses 1
value | extension
stringclasses 14
values | total_lines
int64 1
219k
| avg_line_length
float64 2.52
4.63M
| max_line_length
int64 5
9.91M
| alphanum_fraction
float64 0
1
| repo_name
stringlengths 7
101
| repo_stars
int64 100
139k
| repo_forks
int64 0
26.4k
| repo_open_issues
int64 0
2.27k
| repo_license
stringclasses 12
values | repo_extraction_date
stringclasses 433
values |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,289,700 | esp8266.cpython-310.pyc | OLIMEX_RVPC/SOFTWARE/rvpc/esptool/esptool/targets/__pycache__/esp8266.cpython-310.pyc | o
’jÂd¢ ã @ sF d dl mZ d dlmZmZ G dd„ deƒZG dd„ deƒZee_dS )é )Ú ESPLoader)Ú
FatalErrorÚNotImplementedInROMErrorc
sò e Zd ZdZdZdZdgZdZdZdZ dZ
d Zd
ZdZ
dZdZd
ZdZdZddd
dd
dddddœ ZdddddœZdZg d¢g d¢g d¢g d¢gZdd „ Zd!d"„ Zd#d$„ Zd%d&„ Z‡ fd'd(„Z‡ fd)d*„Zd+d,„ Zd4d.d/„Zd0d1„ Zd2d3„ Z ‡ Z!S )5Ú
ESP8266ROMz'Access class for ESP8266 ROM bootloaderÚESP8266Fl Aá éP ð?éT ð?é\ ð?i `é é é$ Né@ i `r é é é0 éP é` é€ é� ) Ú512KBÚ256KBÚ1MBÚ2MBÚ4MBz2MB-c1z4MB-c1Ú8MBÚ16MBé é )Ú80mÚ40mÚ26mÚ20m)i ð?i ð?ÚDPORT)i €þ?i @ÚDRAM)i @i €@ÚIRAM)i @i.@ÚIROMc C sD | d¡d> }|| d¡d> O }|| d¡d> O }|| d¡O }|S )Nr r iX ð?r
r r r )Úread_reg)ÚselfÚresult© r) ú7/home/ceco/Downloads/esptool/esptool/targets/esp8266.pyÚ
get_efuses? s
zESP8266ROM.get_efusesc C st |d@ dk}|d@ dk}|d@ dk}|d@ dk}|r(|s(|s"|s"dS |s(|r(dS |s8|r8|s2|s2dS |s8|r8dS d S )
Nr r l l l r r é éÿÿÿÿr) )r' ÚefusesÚr0_4Úr3_25Úr3_26Úr3_27r) r) r* Ú_get_flash_sizeG s zESP8266ROM._get_flash_sizec C sX | ¡ }|d@ dk}|r*| |¡}|d@ dk}|rdnd|r dnddœ |d ¡}|S d
S )Nl r r Ú
ESP8285H08Ú
ESP8285N08Ú
ESP8285H16Ú
ESP8285N16)r r ÚESP8285Ú ESP8266EX)r+ r3 Úget)r' r. Úis_8285Ú
flash_sizeÚmax_tempÚ chip_namer) r) r* Úget_chip_descriptionZ s þ
þ
þýzESP8266ROM.get_chip_descriptionc C s dg}d| ¡ v r|dg7 }|S )NÚWiFir8 zEmbedded Flash)r? )r' Úfeaturesr) r) r* Úget_chip_featuresk s
zESP8266ROM.get_chip_featuresc s* | j r
tt| ƒ |¡ d S | dd¡ d S )Nr )ÚIS_STUBÚsuperr Úflash_spi_attachÚflash_begin)r' Úhspi_arg©Ú __class__r) r* rE q s zESP8266ROM.flash_spi_attachc s | j r
tt| ƒ |¡ d S d S ©N)rC rD r Úflash_set_parameters)r' ÚsizerH r) r* rK y s ÿzESP8266ROM.flash_set_parametersc C s, | | j¡}| | j¡}|d? |d@ d> B S )z_
Read Chip ID from efuse - the equivalent of the SDK system_get_chip_id() func
é iÿÿÿ é )r& |