<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
<?php /* * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistribut…
#!/bin/sh #Copyright (C) Texas Instruments Incorporated - http://www.ti.com/ # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # Redistributions…
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Input: [   [1,1,1],   [1,0,1],   [1,1,1] ] Output: [   [1,0,1],   [0,0,0],   [1,0,1] ] Example 2: Input: [   [0,1,2,0],   [3,4,5,2],   [1,3,1,5]…
<?php # PHP_SELF: 但前正在执行脚本的文件名,与document root相关 # QUERY_STRING: 查询(query)的字符串 $cachefile = "cache".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; # ^ function start_caching() # | { # | //Use the global $cachefile variable # | gl…
{ "main_menu": { "apps": [ { "Name":"Profiling", ", "Icon":"apps\/images\/oprofile-icon.png", "Type":"directory", "Category":"profiling" }, { "Na…
ZHA Coordinator 如何控制ZLL Light/Philips Hue Light 缩写: ZHA: ZigBee Home Automation profile ZLL:  ZigBee Light Link profile TCLK: Trust Center Link Key 为什么ZLL 灯加入ZHA网络 在ZLL网络中,设备支持两种方式Join ZigBee网络,一种是通过Touch Link[1]方式入网,遥控器和灯靠近配对的方式把灯拉入到ZLL网络中.另外一种是传统入网…
TIMAC是TI公司推出的基于IEEE 802.15.4的通讯协议栈,编译环境为IAR,使用IAR自带的CLIB库,CLIB库提供了轻量级的C库,它不支持嵌入式C++.适用于RF4CE协议和ZigBee-Pro产品. 目前学习的MAC层协议版本为1.5.0. 为什么要学习TIMAC呢?在开发基于ZigBee的项目中,遇到了一些底层上的问题,再深入时,发现卡在底层封装的库中去,TIMAC比ZStack的底层开放程度更高,为了更好的理解无线传输的一些细节问题,才会去看TIMAC协议. 特点 1. 多…
/* * matrix-browser * * Simple web viewer used by Matrix application launcher * * Copyright (C) 2011,2012 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are…
  1: /// <summary> 2: /// Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column is set to 0. 3: /// </summary> 4: class Program 5: { 6: static void Main(string[] args) 7: { 8: Program p = new Program(); 9:…
[抄题]: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Input: [   [1,1,1],   [1,0,1],   [1,1,1] ] Output: [   [1,0,1],   [0,0,0],   [1,0,1] ] [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩…
题目:矩阵置0 难度:Easy 题目内容: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. 翻译: 给定一个m x n矩阵,如果一个元素是0,就把它的整行和列设为0. 要求:就地置0. Example 1: Input: [   [1,1,1],   [1,0,1],   [1,1,1] ] Output: [   [1,0,1],   [0,0,0],  …
// ConsoleApplication10.cpp : 定义控制台应用程序的入口点. // #include "stdafx.h" #include <iostream> #include <vector> using namespace std; class Solution { public: /** * 返回git树上两点的最近分割点 * * @param matrix 接邻矩阵,表示git树,matrix[i][j] == '1' 当且仅当git树中…
从对角考虑 package my_basic.class_3; /** * 从对角开始 */ public class Code_09_FindNumInSortedMatrix { public static boolean isContain(int[][] matrix,int k) { int endR = matrix.length-1; int endC = matrix[0].length - 1; int row = endR; int column = 0; while (ro…
# # ti processor sdk linux am335x evm Makefile hacking # 说明: # 本文主要对TI的sdk中的Makefile脚本进行解读,是为了了解其工作机制. # 该文件中的一些写法是值得参考的. # -- 深圳 南山平山村 曾剑锋 # #platform # PLATFORM=am335x-evm # #defconfig # DEFCONFIG=singlecore-omap2plus_defconfig # #Architecture # AR…
#!/bin/bash # # ti processor sdk linux am335x evm /bin/create-sdcard.sh hacking # 说明: # 本文主要对TI的sdk中的create-sdcard.sh脚本进行解读,该文件只解读 # 前面一部分,后面一部分未解读,主要是因为后面的代码并不能获取到正确 # 的设备节点,于是不打算深入解读.其中学会到了tar中显示解压进度的写法, # 以及拷贝文件夹的显示当前拷贝数据的进度的方法. # # -- 深圳 南山平山村 曾剑…
#!/bin/bash # # ti processor sdk linux am335x evm /bin/unshallow-repositories.sh hacking # 说明: # 本文主要对TI的sdk中的unshallow-repositories.sh脚本进行解读,是为了了解 # 其工作机制. # # -- 深圳 南山平山村 曾剑锋 # Authors: # Franklin Cooper Jr. # This distribution contains contributio…
#!/bin/sh # # ti processor sdk linux am335x evm /bin/setup-uboot-env.sh hacking # 说明: # 本文主要对TI的sdk中的setup-uboot-env.sh脚本进行解读,是为了了解 # 其工作机制,另外了解到minicom原来是可以用脚本来和开发板进行交互的. # # -- 深圳 南山平山村 曾剑锋 # This distribution contains contributions or derivatives…
/*********************************************************************** * OK335xS mac address hacking * 声明: * 在一般的嵌入式产品中,一般mac地址都是存在于CPU芯片中,不过有时候 * 我们也许会表示怀疑,因为我们可能更希望知道那些东西到底存在哪里,以一 * 种什么样的形式存在. * * 2016-2-1 深圳 南山平山村 曾剑锋 ***************************…
/************************************************************************* * OK335xS pwm device register hacking * 声明: * 本文是对OK335xS pwm设备注册进行代码跟踪,其中有些部分是由于本人自己 * 添加的,但都是经过测试. * * 2015-8-25 晴 深圳 南山平山村 曾剑锋 *********************************************…
/********************************************************************************************* * TI AM335x Linux MUX hacking * 声明: * 1. 本文主要是对TI的AM335x Linux驱动中的引脚复用配置代码进行跟踪: * 2. 参考书籍:AM335x ARM® Cortex™-A8 Microprocessors (MPUs) Technical Reference…
上午剑锋给的方法,成功在qtcreator上面加入TI官方的qmake以及他的交叉编译器. 1. 步骤如下: 1. 我假设TI PDK3.0 安装目录为顶层目录. 2. 进入linux-devkit 目录, 看到environment-setup. 3. 这个文件内又很多相关的环境变量设置. 4. 在运行你的qtcreator 之前,先运行该文件: 5. . environment-setup 6. /home/chen_7109/am335x/Qt5.6.1/Tools/QtCreator/b…
精通Web Analytics 2.0 : 用户中心科学与在线统计艺术 第五章:荣耀之钥:度量成功 我们的分析师常常得不到我们应得的喜欢,尊重和资金,因为我们没有充分地衡量一个黄金概念:成果.因为我们拥有大量的数据,我们投入去对访问量.时间和回报进行报告.但是只有我们在关心这些指标.然而,我们的老板会关心一些更简单的东西:今天Web为我做到了什么? 本章将讲述衡量网站的成果的艺术和科学.它会包含明显的指标(转化量,是的!),它也会包含超越电子商务转化率的生活. 它会延伸你的思考,考虑其他的对成功…
[TOC] Platform Library提供了一组适用于开发板的API函数.我们可以使用它来快速入手开发板. 1.启动CCS,建立一个空的工程 2.添加include路径 "C:\Program Files\Texas Instruments\pdk_C####_1_0_0_xx\packages" 3.添加下列链接库到C6000 Linker section中的File Search Path "C:\ti\pdk_c667x_2_0_3\packages\ti\pla…
/****************************************************************************** * OK335xS Linux kernel check clock 24M hacking * 声明: * 由于需要确认kernel中的时钟和引脚配置的时钟是否一致,于是需要去跟踪内核 * 中的代码是如何对引脚配置时钟进行识别,并对其进行相关配置的额. * * 2016-1-5 深圳 南山平山村 曾剑锋 ****************…
1.校准原理: 1)首先生成校准用的参数,可以适用tslib生成校准参数,也可以使用校准app生成:使用校准app进行校准对使用者要求比较低,使用者可以不用学习复杂的命令:本文使用app方式 2)生成校准参数后,以后驱动每次接收到触摸事件就会使用校准参数进行校准 2.校准app 校准功能完全实现在在src目录里的MainActivity.java里,内容如下: package com.wss.calibrate2; import android.app.Activity;import andro…