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
| /****************************************************************************** | |
| Online C Compiler. | |
| Code, Compile, Run and Debug C program online. | |
| Write your code in this editor and press "Run" button to compile and execute it. | |
| *******************************************************************************/ | |
| #include <stdio.h> | |
| #include <stdint.h> |
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
| 1) | |
| #include <stdio.h> | |
| int main() | |
| { | |
| int a[4] = {1, 2, 3, 4}; | |
| int b[4] = {1, 2, 3, 4}; | |
| int n = &b[3] - &a[2]; | |
| printf("%d\n", n); | |
| } | |
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
| Diagnostics in Braking Systems | |
| EBS(Electronic Braking Systems) | |
| 30 ECUs | |
| OBD(On Board Diagnostics) | |
| Check its health | |
| Off Board Diagnostics | |
| A connector tool is connected to the network of ECUs |
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
| /** | |
| * Function to perform jump to system memory boot from user application | |
| * Link: http://www.onarm.com/forum/64128/ | |
| * Call function when you want to jump to system memory | |
| */ | |
| void JumpToBootloader(void) { | |
| void (*SysMemBootJump)(void); | |
| /** | |
| * Step: Set system memory address. |
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
| #include <linux/module.h> | |
| #include <linux/kernel.h> | |
| #include <linux/version.h> | |
| #include <linux/init.h> | |
| #include <linux/device.h> | |
| #include <linux/pci.h> | |
| #include <linux/ioport.h> | |
| #include <asm/unistd.h> | |
| #include <linux/slab.h> | |
| #include <linux/fs.h> |
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
| https://askubuntu.com/questions/645220/unable-to-connect-wifi-ubuntu-14-04-lts-hp-pavilion-network-driver-rtl8723be | |
| sudo add-apt-repository ppa:hanipouspilot/rtlwifi | |
| sudo apt-get update | |
| sudo apt-get install rtlwifi-new-dkms linux-firmware |
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
| read() called when data sent from the device to user space | |
| write() called when data sent from user space to the device | |
| http://derekmolloy.ie/writing-a-linux-kernel-module-part-2-a-character-device/ |
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
| ************function_graph****************** | |
| ******************************************** | |
| echo 0 > /sys/kernel/debug/tracing/tracing_on | |
| trace-cmd start -p function_graph -g ip_rcv | |
| trace-cmd stop | |
| cat /sys/kernel/debug/tracing/trace | |
| ******************************************** | |
| cat tracing_on | |
| echo 1 > tracing_on |
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
| *****TECH DISCUSSION**** | |
| IDEAS for Project | |
| I2C to USB Driver | |
| MODBUS Protocol | |
| Trace Passing System | |
| BACKNET Protocol Building Management system | |
| COAP Protocol | |
| PowerLink Protocol | |
| Zigbee Protocol |
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
| /* | |
| * Sample kset and ktype implementation | |
| * | |
| * Copyright (C) 2004-2007 Greg Kroah-Hartman <[email protected]> | |
| * Copyright (C) 2007 Novell Inc. | |
| * | |
| * Released under the GPL version 2 only. | |
| * | |
| */ |