Permalink
Browse files

create repository

  • Loading branch information...
0 parents commit 7a20a61fd715c21dcec6d919ab92a2f4edeca962 @ytai committed Oct 31, 2010
@@ -0,0 +1,70 @@
+#ifndef _HARDWAREPROFILE_H_
+#define _HARDWAREPROFILE_H_
+
+#if defined (__C30__)
+ // Various clock values
+ #define GetSystemClock() 32000000UL
+ #define GetPeripheralClock() (GetSystemClock())
+ #define GetInstructionClock() (GetSystemClock() / 2)
+#elif defined( __PIC32MX__)
+ #define GetSystemClock() 80000000UL
+ #define GetPeripheralClock() 80000000UL // Will be divided down
+ #define GetInstructionClock() GetSystemClock()
+#endif
+
+// Define the baud rate constants
+#define BAUDRATE2 38400
+#define BRG_DIV2 4
+#define BRGH2 1
+
+#if defined(__PIC24F__) || defined(__PIC24H__)
+ #include <p24fxxxx.h>
+ #include <uart2.h>
+ #include "pps.h"
+#else
+ #include <p32xxxx.h>
+ #include <plib.h>
+ #include <uart2.h>
+#endif
+
+
+/** TRIS ***********************************************************/
+#define INPUT_PIN 1
+#define OUTPUT_PIN 0
+
+
+#if defined (__C30__)
+ #if defined(__PIC24FJ256DA206__)
+ #define mInitAllLEDs() {TRISFbits.TRISF3 = 0; LATFbits.LATF3 = 1;}
+ #define mInitAllSwitches()
+
+ #define mLED_0 LATFbits.LATF3
+ #else
+ #error unknown platform
+ #endif
+
+ #define mLED_0_On() mLED_0 = 0;
+ #define mLED_0_Off() mLED_0 = 1;
+ #define mLED_0_Toggle() mLED_0 = !mLED_0;
+ #define mLED_1_On()
+ #define mLED_1_Off()
+ #define mLED_1_Toggle()
+
+#elif defined(__PIC32MX__)
+ #define mInitAllLEDs() {TRISE &= ~0x0F; LATE &= 0x0F;}
+
+ #define mLED_0 LATEbits.LATE0
+ #define mLED_1 LATEbits.LATE1
+
+ #define mLED_0_On() mLED_0 = 1;
+ #define mLED_1_On() mLED_1 = 1;
+
+ #define mLED_0_Off() mLED_0 = 0;
+ #define mLED_1_Off() mLED_1 = 0;
+
+ #define mLED_0_Toggle() mLED_0 = !mLED_0;
+ #define mLED_1_Toggle() mLED_1 = !mLED_1;
+#endif
+
+#endif
+
@@ -0,0 +1,126 @@
+[HEADER]
+magic_cookie={66E99B07-E706-4689-9E80-9B2582898A13}
+file_version=1.0
+device=PIC24FJ256DA206
+[PATH_INFO]
+BuildDirPolicy=BuildDirIsProjectDir
+dir_src=
+dir_bin=
+dir_tmp=
+dir_sin=
+dir_inc=.;C:\Microchip Solutions v2010-08-04\Microchip\Include
+dir_lib=
+dir_lkr=
+[CAT_FILTERS]
+filter_src=*.s;*.c
+filter_inc=*.h;*.inc
+filter_obj=*.o
+filter_lib=*.a
+filter_lkr=*.gld
+[CAT_SUBFOLDERS]
+subfolder_src=Common;USB Stack
+subfolder_inc=Common;USB Stack
+subfolder_obj=
+subfolder_lib=
+subfolder_lkr=
+[FILE_SUBFOLDERS]
+file_000=.
+file_001=USB Stack
+file_002=.
+file_003=Common
+file_004=.
+file_005=.
+file_006=USB Stack
+file_007=USB Stack
+file_008=USB Stack
+file_009=USB Stack
+file_010=USB Stack
+file_011=USB Stack
+file_012=USB Stack
+file_013=.
+file_014=Common
+file_015=Common
+file_016=Common
+file_017=Common
+file_018=.
+file_019=Common
+[GENERATED_FILES]
+file_000=no
+file_001=no
+file_002=no
+file_003=no
+file_004=no
+file_005=no
+file_006=no
+file_007=no
+file_008=no
+file_009=no
+file_010=no
+file_011=no
+file_012=no
+file_013=no
+file_014=no
+file_015=no
+file_016=no
+file_017=no
+file_018=no
+file_019=no
+[OTHER_FILES]
+file_000=no
+file_001=no
+file_002=no
+file_003=no
+file_004=no
+file_005=no
+file_006=no
+file_007=no
+file_008=no
+file_009=no
+file_010=no
+file_011=no
+file_012=no
+file_013=no
+file_014=no
+file_015=no
+file_016=no
+file_017=no
+file_018=no
+file_019=no
+[FILE_INFO]
+file_000=main.c
+file_001=C:\Microchip Solutions v2010-08-04\Microchip\USB\usb_host.c
+file_002=usb_config.c
+file_003=C:\Microchip Solutions v2010-08-04\Microchip\Common\uart2.c
+file_004=usb_host_android.c
+file_005=HardwareProfile.h
+file_006=C:\Microchip Solutions v2010-08-04\Microchip\Include\USB\usb.h
+file_007=C:\Microchip Solutions v2010-08-04\Microchip\Include\USB\usb_ch9.h
+file_008=C:\Microchip Solutions v2010-08-04\Microchip\Include\USB\usb_common.h
+file_009=C:\Microchip Solutions v2010-08-04\Microchip\Include\USB\usb_hal.h
+file_010=C:\Microchip Solutions v2010-08-04\Microchip\USB\usb_hal_local.h
+file_011=C:\Microchip Solutions v2010-08-04\Microchip\Include\USB\usb_host.h
+file_012=C:\Microchip Solutions v2010-08-04\Microchip\USB\usb_host_local.h
+file_013=usb_config.h
+file_014=C:\Microchip Solutions v2010-08-04\Microchip\Include\Compiler.h
+file_015=C:\Microchip Solutions v2010-08-04\Microchip\Include\GenericTypeDefs.h
+file_016=C:\Microchip Solutions v2010-08-04\Microchip\Include\struct_queue.h
+file_017=C:\Microchip Solutions v2010-08-04\Microchip\Include\timer.h
+file_018=usb_host_android.h
+file_019=C:\Microchip Solutions v2010-08-04\Microchip\Include\uart2.h
+[SUITE_INFO]
+suite_guid={479DDE59-4D56-455E-855E-FFF59A3DB57E}
+suite_state=
+[TOOL_SETTINGS]
+TS{7D9C6ECE-785D-44CB-BA22-17BF2E119622}=-g
+TS{25AC22BD-2378-4FDB-BFB6-7345A15512D3}=-g -Wall -DDEBUG_MODE
+TS{7DAC9A1D-4C45-45D6-B25A-D117C74E8F5A}=--heap=8192 -Map="$(BINDIR_)$(TARGETBASE).map" --report-mem -o"$(BINDIR_)$(TARGETBASE).$(TARGETSUFFIX)"
+TS{509E5861-1E2A-483B-8B6B-CA8DB7F2DD78}=
+[INSTRUMENTED_TRACE]
+enable=0
+transport=0
+format=0
+[CUSTOM_BUILD]
+Pre-Build=
+Pre-BuildEnabled=1
+Post-Build=
+Post-BuildEnabled=1
@@ -0,0 +1 @@
+This directory holds the firmware running on the IOIO board.
Oops, something went wrong.

0 comments on commit 7a20a61

Please sign in to comment.