reset

linux MMC framework(2) - sdhci host driver

假如想象 提交于 2020-01-22 08:27:00
了解 sdhci host driver. 1.概述   The MultiMediaCard (MMC)/ Secure Digital (SD)/ Secure Digital Input Output (SDIO) host driver implements a standard Linux driver interface to the ultra MMC/SD host controller (microSDHC). The host driver is part of the Linux kernel MMC framework. 1.1.Kernel configuration You can manage the MMC driver support through the kernel configuration options: MMC/SD/SDIO (CONFIG_MMC) MMC block (CONFIG_MMC_BLOCK) Secure Digital Host Controller Interface support (CONFIG_MMC_SDHCI) SDHCI support on the platform-specific bus (CONFIG_MMC_SDHCI_PLTFM) 2.数据结构 2.1.struct sdhci_host

Jetson (1)--- 金属盒子按键Power,Reset线接法

好久不见. 提交于 2020-01-20 23:16:07
买了一个金属盒子,有个power按键,还有个Reset按键,居然不知道接法。问了商家,他们也不知道,网上也没有教程,最后还是自己找到针脚图 看到没,下图最上面的那个跳线短接,就是上图中 Pin 7 和 8. 这样知道了吧,最下面就是电源,倒数第二个就是Reset按键。 如果要使用DC供电,那么就短接 J48跳线。 来源: https://www.cnblogs.com/chengchen/p/12219615.html

How to restore IDLE to factory settings

末鹿安然 提交于 2020-01-20 08:42:25
问题 I was messing with the Preferences in Python IDLE and I couldn't edit the size of the window. So I right clicked on the windows size where it says "Width and Height" and got a ridiculous size for width! Now IDLE wont even turn on. I tried uninstalling it and installing it again but it doesn't work. I have a Mac. How do I reset IDLE? 回答1: Assuming you mean Idle (which comes with Python), close Idle, then in Terminal, type: mv ~/.idlerc ~/.idlerc-save 回答2: I know you're using Mac, but here's

k8s基础操作命令

纵饮孤独 提交于 2020-01-20 08:10:23
K8s重新加入节点 1.重置node节点环境在slave节点上执行 [root@node2 ~]# kubeadm reset [reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted. [reset] are you sure you want to proceed? [y/N]: y [preflight] running pre-flight checks [reset] stopping the kubelet service [reset] unmounting mounted directories in "/var/lib/kubelet" [reset] removing kubernetes-managed containers [reset] cleaning up running containers using crictl with socket /var/run/dockershim.sock [reset] failed to list running pods using crictl: exit status 1. Trying to use docker instead[reset] no etcd

版本管理工具Git(四)Git工具使用

微笑、不失礼 提交于 2020-01-19 18:11:22
Git的使用 全局配置 设置环境信息 git config ,这个就可以理解为git命令的上下文环境,尤其是在和远程仓库交互的时候。 # 加 --system 参数配置信息存放在/etc/gitconfig文件中,对所有用户适用 git config --system # 加 --global 选项配置存放在 ~/.gitconfig文件中 对当前用户适用 git config --global # 什么都不加就在当前工作目录的.git目录下存放,仅适用于当前项目,这个优先级最高 git config 修改配置 git config [--system|--global] -e ,它会打开一个类似VI编辑器的东西,这样就可以进行修改操作。 常用的设置包括: # 下面是设置一个用户信息 git config [--global] user.name [USER_NAME] 不加用户名就是查看当前项目中配置的用户 # 设置邮箱,如果不加邮箱就是查看 git config [--global] user.email "" # 设置密码,如果不加密码就是查看 git config [--global] user.password "" # 禁用SSL验证 git config [--global] http.sslverify false # 查看配置信息 git config -

浅析PCIe链路LTSSM状态机

╄→尐↘猪︶ㄣ 提交于 2020-01-18 11:30:36
版权声明:本文为CSDN博主「古猫先生」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 https://blog.csdn.net/zhuzongpeng/article/details/78995340 我们知道,在PCIe链路可以正常工作之前,需要对PCIe链路进行链路训练,在这个过程中,就会用LTSSM状态机。LTSSM全称是Link Training and Status State Machine。这个状态机在哪里呢?它就在PCIe总线的物理层之中。 LTSSM状态机涵盖了11个状态,包括Detect, Polling, Configuration, Recovery, L0, L0s, L1, L2, Hot Reset, Loopback, Disable。这11个状态之间转换的逻辑,如下图, 这11个状态大致可以分为4大类: (1) PCIe链路训练相关。正常的PCIe链路训练状态转换流程依次是,Detect->Polling->Configuration->L0. L0是PCIe链路可以正常工作的电源状态。 (2) PCIe链路重新训练相关。这个状态也称为Recovery。Recovery是一个非常重要的链路状态,进入这个状态的因素也很多,比如电源状态的变化,PCIe链路速率的变化等。 (3) 电源状态相关

Resetting all fields to initial state in C#.NET WinForms application

泪湿孤枕 提交于 2020-01-17 12:27:08
问题 got a very simple question which I can't seem to find any answer for. In a standard WinForms application, is there anything I can iterate through in order to find all the relevant input items to reset in a given form? EG, iterate through all inputs and set TextBox.Text = "", ComboBox.SelectedItem = -1, etc ... If this was a Web application it'd be easy, I'd just iterate through the Controls collection in the Page. But a Console application doesn't have a Page element, and I've looked at the

Django实现用户密码重置

强颜欢笑 提交于 2020-01-17 05:34:40
使用Django内置的认证视图实现简单的通过邮箱重置密码的功能 版本:django 1.11 在django.contrib.auth.views中提供了四个类视图用于密码重置 class PasswordResetView URL name: password_reset  #要保持相同 通过给邮箱发送重置密码的链接进行密码重置.注意如果邮箱不存在,不会发送邮件但也不会有错误提示! 属性: template_name:指定重置密码页面的模板名称(输入邮箱页面),默认为'registration/password_reset_form.html' form_class:指定对邮箱进行验证的Form,默认为'PasswordResetForm',如果要实现'邮箱未注册'的提示,可以重写该Form的clean()方法. email_template_name:邮件内容的模板,默认为'registration/password_reset_email.html'. subject_template_name:邮件主题的模板,默认'registration/password_reset_subject.txt'. success_url:邮件发送成功(或邮箱未注册)后重定向的URL. form_email: 发送邮件的地址.默认使用DEFAULT_FORM_EMAIL

stm32 串口发送字符串第一个字节丢失、复位发送00

 ̄綄美尐妖づ 提交于 2020-01-16 03:50:44
1.stm32 串口发送字符串第一个字节丢失 这个问题如下解决: while(USART_GetFlagStatus(USART1, USART_FLAG_TXE) == RESET);//防止一个字节丢失 USART_SendData(USART1,data); while(USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET); 2.stm32复位串口发送00,APB1与APB2混淆了,区分好。 来源: CSDN 作者: 嵌入式阿萌 链接: https://blog.csdn.net/weixin_41613969/article/details/103995694

git常用命令总结

瘦欲@ 提交于 2020-01-15 18:55:44
Git常用命令总结 git init 在本地新建一个repo,进入一个项目目录,执行git init,会初始化一个repo,并在当前文件夹下创建一个.git文件夹. git clone 获取一个url对应的远程Git repo, 创建一个local copy. 一般的格式是git clone [url]. clone下来的repo会以url最后一个斜线后面的名称命名,创建一个文件夹,如果想要指定特定的名称,可以git clone [url] newname指定. git status 查询repo的状态. git status -s: -s表示short, -s的输出标记会有两列,第一列是对staging区域而言,第二列是对working目录而言. git log show commit history of a branch. git log --oneline --number: 每条log只显示一行,显示number条. git log --oneline --graph:可以图形化地表示出分支合并历史. git log branchname可以显示特定分支的log. git log --oneline branch1 ^branch2,可以查看在分支1,却不在分支2中的提交.^表示排除这个分支(Window下可能要给^branch2加上引号). git log -