Permalink
Browse files

Initial commit of hijack-infinity work.

  • Loading branch information...
1 parent 1db5734 commit ec12a30a0a59f34e663cd73db1cc38080b0de1d1 @anroOfCode committed Oct 22, 2012
Showing with 53,078 additions and 0 deletions.
  1. +13 −0 .gitignore
  2. +674 −0 COPYING
  3. +4 −0 README
  4. +8 −0 android/.classpath
  5. +33 −0 android/.project
  6. +4 −0 android/.settings/org.eclipse.jdt.core.prefs
  7. +29 −0 android/AndroidManifest.xml
  8. BIN android/ic_launcher-web.png
  9. BIN android/libs/Androidplot-core-0.5.0-release.jar
  10. BIN android/libs/android-support-v4.jar
  11. +20 −0 android/proguard-project.txt
  12. +14 −0 android/project.properties
  13. BIN android/res/drawable-hdpi/ic_action_search.png
  14. BIN android/res/drawable-hdpi/ic_launcher.png
  15. BIN android/res/drawable-ldpi/ic_launcher.png
  16. BIN android/res/drawable-mdpi/ic_action_search.png
  17. BIN android/res/drawable-mdpi/ic_launcher.png
  18. BIN android/res/drawable-xhdpi/ic_action_search.png
  19. BIN android/res/drawable-xhdpi/ic_launcher.png
  20. +229 −0 android/res/layout/activity_fram_jack.xml
  21. +6 −0 android/res/menu/activity_fram_jack.xml
  22. +5 −0 android/res/values-v11/styles.xml
  23. +5 −0 android/res/values-v14/styles.xml
  24. +33 −0 android/res/values/strings.xml
  25. +5 −0 android/res/values/styles.xml
  26. BIN android/src/umich/framjack/.sinTest.java.swp
  27. +227 −0 android/src/umich/framjack/ApplicationInterface.java
  28. +138 −0 android/src/umich/framjack/FramJack.java
  29. +135 −0 android/src/umich/framjack/FramingEngine.java
  30. +414 −0 android/src/umich/framjack/core/AudioReceiver.java
  31. +25 −0 android/src/umich/framjack/core/IncomingSink.java
  32. +22 −0 android/src/umich/framjack/core/OnByteSentListener.java
  33. +22 −0 android/src/umich/framjack/core/OnBytesAvailableListener.java
  34. +25 −0 android/src/umich/framjack/core/OutgoingSource.java
  35. +314 −0 android/src/umich/framjack/core/SerialDecoder.java
  36. +6,798 −0 eagle/hijack.lbr
  37. +1,038 −0 eagle/jtag_interface/rev_a/hijack_jtag_a.brd
  38. +567 −0 eagle/jtag_interface/rev_a/hijack_jtag_a.sch
  39. BIN eagle/jtag_interface/rev_a/hijack_jtag_a_to_fab_2012-09-19.zip
  40. BIN eagle/jtag_interface/rev_a/hijack_jtag_bom.xls
  41. +1,993 −0 eagle/jtag_interface/rev_b/hijack_jtag_b.brd
  42. +3,712 −0 eagle/jtag_interface/rev_b/hijack_jtag_b.sch
  43. +2,204 −0 eagle/rev_a/hijack-fram_A.brd
  44. +7,486 −0 eagle/rev_a/hijack-fram_A.sch
  45. BIN eagle/rev_a/hijack-fram_A_to_fab_2012-09-17.zip
  46. BIN eagle/rev_a/hijack-fram_bom.xls
  47. +3,121 −0 eagle/rev_b/hijack-fram_B.brd
  48. +7,486 −0 eagle/rev_b/hijack-fram_B.sch
  49. BIN eagle/rev_b/hijack-fram_B_to_fab_2012-09-24.zip
  50. BIN eagle/rev_b/hijack-fram_bom.xls
  51. BIN eagle/rev_c/FRAMjack_C_to_fab_2012-09-27.zip
  52. BIN eagle/rev_c/framjack.zip
  53. BIN eagle/rev_c/framjack_bom.xls
  54. +3,400 −0 eagle/rev_c/hijack-fram_C.brd
  55. +8,565 −0 eagle/rev_c/hijack-fram_C.sch
  56. +83 −0 hijack/Makefile
  57. +34 −0 hijack/Tupfile
  58. +59 −0 hijack/dev/advanced/Makefile
  59. 0 hijack/dev/advanced/adc.h
  60. +53 −0 hijack/dev/advanced/main.c
  61. +58 −0 hijack/dev/blink/Makefile
  62. +41 −0 hijack/dev/blink/blink.ihex
  63. +104 −0 hijack/dev/blink/main.c
  64. BIN hijack/dev/blink/main.o
  65. +58 −0 hijack/dev/interrupt/Makefile
  66. +14 −0 hijack/dev/interrupt/ccs/.ccsproject
  67. +166 −0 hijack/dev/interrupt/ccs/.cproject
  68. +90 −0 hijack/dev/interrupt/ccs/.project
  69. +4 −0 hijack/dev/interrupt/ccs/.settings/org.eclipse.cdt.codan.core.prefs
  70. +3 −0 hijack/dev/interrupt/ccs/.settings/org.eclipse.cdt.debug.core.prefs
  71. +6 −0 hijack/dev/interrupt/ccs/.settings/org.eclipse.core.resources.prefs
  72. +320 −0 hijack/dev/interrupt/ccs/CHR_active.asm
  73. +12 −0 hijack/dev/interrupt/ccs/MSP430FR5969.ccxml
  74. +222 −0 hijack/dev/interrupt/ccs/lnk_msp430fr5969.cmd
  75. +226 −0 hijack/dev/interrupt/interrupt.c
  76. +59 −0 hijack/dev/null/Makefile
  77. +53 −0 hijack/dev/null/main.c
  78. +49 −0 hijack/dev/oldAdcCrap.txt
  79. +80 −0 hijack/hardware.txt
  80. BIN hijack/libmsp430.so
  81. +238 −0 hijack/src/codingStateMachine.c
  82. +185 −0 hijack/src/framingEngine.c
  83. +32 −0 hijack/src/include/adc.h
  84. +39 −0 hijack/src/include/analog.h
  85. +138 −0 hijack/src/include/codingStateMachine.h
  86. +42 −0 hijack/src/include/comparator.h
  87. +18 −0 hijack/src/include/config.h
  88. +35 −0 hijack/src/include/ctimer.h
  89. +119 −0 hijack/src/include/framingEngine.h
  90. +37 −0 hijack/src/include/gpio.h
  91. +70 −0 hijack/src/include/hardware.h
  92. +41 −0 hijack/src/include/interrupt.h
  93. +90 −0 hijack/src/include/pal.h
  94. +33 −0 hijack/src/include/ptimer.h
  95. +31 −0 hijack/src/include/reference.h
  96. +34 −0 hijack/src/include/sstimer.h
  97. +40 −0 hijack/src/include/utility.h
  98. +149 −0 hijack/src/lib/pal.c
  99. +139 −0 hijack/src/main.c
  100. +70 −0 hijack/src/peripherals/adc.c
  101. +51 −0 hijack/src/peripherals/analog.c
  102. +136 −0 hijack/src/peripherals/comparator.c
  103. +68 −0 hijack/src/peripherals/ctimer.c
  104. +90 −0 hijack/src/peripherals/gpio.c
  105. +182 −0 hijack/src/peripherals/interrupt.c
  106. +62 −0 hijack/src/peripherals/ptimer.c
  107. +42 −0 hijack/src/peripherals/reference.c
  108. +66 −0 hijack/src/peripherals/sstimer.c
  109. +138 −0 hijack/src/peripherals/utility.c
  110. +95 −0 hijack/src/test/test_codingStateMachine.c
View
@@ -0,0 +1,13 @@
+examples
+android/bin
+android/gen
+hijack/build
+*.hex
+*.elf
+*.map
+out.txt
+androbin_copyToGit.py
+ignore_mspgcc.sh
+.svn
+docs
+
View
Oops, something went wrong.
View
@@ -0,0 +1,4 @@
+This is the home for the project to change the MSP430 on the hijack board to the new MSP430FR5969 fram based MSP
+
+Wooo!
+
View
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
View
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>framJack</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,4 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,29 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="umich.framjack"
+ android:versionCode="1"
+ android:versionName="1.0" >
+
+ <uses-sdk
+ android:minSdkVersion="14"
+ android:targetSdkVersion="15" />
+
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
+
+
+ <application
+ android:icon="@drawable/ic_launcher"
+ android:label="@string/app_name"
+ android:theme="@style/AppTheme" >
+ <activity
+ android:name=".FramJack"
+ android:label="@string/title_activity_fram_jack"
+ android:screenOrientation="portrait" >
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
@@ -0,0 +1,14 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-16
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,229 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ style="@android:style/TextAppearance.Large"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="10dp"
+ android:layout_marginTop="10dp"
+ android:text="@string/status"
+ tools:context=".FramJack" />
+
+ <TextView
+ android:id="@+id/textViewStatus"
+ style="@android:style/TextAppearance.Large"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dp"
+ android:layout_marginTop="10dp"
+ android:text="@string/status_connected"
+ android:textColor="#11ff11"
+ tools:context=".FramJack" />
+
+ </LinearLayout>
+
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ android:id="@+id/textViewInfo"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:text="@string/text_info"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ <TextView
+ android:id="@+id/textViewWarning"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:textColor="#FF1111"
+ android:text="@string/text_warning"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ <GridLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:rowCount="4"
+ android:columnCount="2"
+ android:alignmentMode="alignBounds" >
+
+ <Switch
+ android:id="@+id/switch1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:text="@string/out1" />
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:text="@string/in1"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textViewIn1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/low"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ </LinearLayout>
+
+ <Switch
+ android:id="@+id/switch2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:text="@string/out2" />
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:text="@string/in2"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textViewIn2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/low"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ </LinearLayout>
+
+ <Switch
+ android:id="@+id/switch3"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:text="@string/out3" />
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:text="@string/in3"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textViewIn3"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/voltDefault"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/voltUnits"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ </LinearLayout>
+
+ <Switch
+ android:id="@+id/switch4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp"
+ android:text="@string/out4" />
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="10dp" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="5dp"
+ android:text="@string/in4"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:id="@+id/textViewIn4"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/voltDefault"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/voltUnits"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+ </LinearLayout>
+
+ </GridLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+
+ <TextView
+ style="@android:style/TextAppearance.Large"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="10dp"
+ android:layout_marginTop="10dp"
+ android:text="@string/temperature"
+ tools:context=".FramJack" />
+
+ <TextView
+ android:id="@+id/textViewTemp"
+ style="@android:style/TextAppearance.Large"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dp"
+ android:layout_marginTop="10dp"
+ android:text="@string/temperatureDefault"
+ android:textColor="#1111ff"
+ tools:context=".FramJack" />
+
+ <TextView
+ style="@android:style/TextAppearance.Large"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="5dp"
+ android:layout_marginTop="10dp"
+ android:text="@string/temperatureUnits"
+ android:textColor="#1111ff"
+ tools:context=".FramJack" />
+
+ </LinearLayout>
+ </LinearLayout>
+</LinearLayout>
@@ -0,0 +1,6 @@
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/menu_settings"
+ android:title="@string/menu_settings"
+ android:orderInCategory="100"
+ android:showAsAction="never" />
+</menu>
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light" />
+
+</resources>
@@ -0,0 +1,5 @@
+<resources>
+
+ <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
+
+</resources>
Oops, something went wrong.

0 comments on commit ec12a30

Please sign in to comment.