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 "efm32.h" | |
#include "em_chip.h" | |
#include "em_cmu.h" | |
#include "em_emu.h" | |
#include "em_gpio.h" | |
#include "em_timer.h" | |
#include "em_system.h" | |
void _exit(int code)///New lib SysCall for GCC | |
{ |
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
@ECHO OFF | |
@REM SET JAVA_PATH= set your JDK install path here - not the bin directory | |
@REM SET ANT_PATH= set your Ant extracted path here - not the bin directory | |
@SET JAVA_HOME=%JAVA_PATH% | |
@SET ANT_HOME=%ANT_PATH% | |
@SET PATH=%JAVA_PATH%\bin;%ANT_PATH%\bin;%PATH% | |
@CLS | |
@ECHO ANT Build Environment Setup Done |
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
#!/bin/sh | |
set +v | |
#export JAVA_PATH= set your JDK install path here - not the bin directory | |
#export ANT_PATH= set your Ant extracted path here - not the bin directory | |
export JAVA_HOME=$JAVA_PATH | |
export ANT_HOME=$ANT_PATH | |
export PATH=$JAVA_PATH/bin:$ANT_PATH/bin:$PATH | |
clear | |
echo ANT Build Environment Setup Done |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project basedir="." default="compile" name="jNeelSer"> | |
</project> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
jNeelSerial Build Script | |
........................ | |
@copy © Abhijit Bose , A.D.H.A.R Labs Research Bharat(India), 2013. | |
jNeelSerial is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or |
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
#!/usr/bin/python | |
####### | |
# This program would generate Squence pulse train on GPIO 7 Pin 26 of P1 | |
####### | |
import RPi.GPIO as GPIO | |
from time import sleep | |
import sys | |
import signal | |
def signal_handler(signal, frame): |
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
#!/usr/bin/python | |
####### | |
# This program would generate PWM on GPIO 7 Pin 26 of P1 | |
# with 50% Dutycyle at 1kHz | |
####### | |
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(7,GPIO.OUT) |
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
#!/usr/bin/python | |
##### | |
# This program would generate PWM on GPIO7 Pin 26 of P1 | |
# with 20% Duty Cycle at 1kHz | |
###### | |
import RPi.GPIO as GPIO | |
from time import sleep | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(7,GPIO.OUT) |
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
import os,sys,importlib | |
from os import path | |
def Runner(sRootPath): | |
''' Runs all the scripts in lower directories | |
@param sRootPath Specifies the Path from which Script Running should start | |
@return None | |
''' | |
try: | |
for root, dirs, files in os.walk(sRootPath): | |
#bypass dir with _ and __ , Process only if some files |
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
import os,sys,importlib | |
from os import path | |
def RunScript(sPath,sFile,bDirect=2): | |
''' Run a Python Script via differenct Methods | |
@param sPath Sting containing Only the | |
Absolute Path of the File to Execute | |
@param sFile String containing Only the File Name to Execute | |
@param bDirect Flag indicates how to run the Script | |
0 = Run using Exec Technique | |
1 = Run directly in Shell |
OlderNewer