Skip to content

Commit

Permalink
Fixed USB HID Keyboard driver for S08JM60
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichStyger committed Sep 8, 2013
1 parent c9492ba commit 22ec055
Show file tree
Hide file tree
Showing 27 changed files with 8,995 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Name>FSL_USB_HID_Keyboard_Device</Name>
<Description>Freescale USB Stack (HID Keyboard)</Description>
<Author>Erich Styger</Author>
<Version>01.048</Version>
<Version>01.049</Version>
<Icon>FSL_USB_HID_Keyboard_Device</Icon>
<TypesFiles>PE,FSL_USB_HID_Keyboard_Device\FSL_USB_HID_Keyboard_Device</TypesFiles>
<FileVersion>6</FileVersion>
Expand Down Expand Up @@ -420,9 +420,9 @@
<ItemLevel>BASIC</ItemLevel>
<BoldName>true</BoldName>
<EditLine>false</EditLine>
<Description>generate code</Description>
<Expanded>Yes</Expanded>
<DefaultValue>true</DefaultValue>
<Description>don't generate code</Description>
<Expanded>No</Expanded>
<DefaultValue>false</DefaultValue>
<DefineSymbol>YES_NO</DefineSymbol>
<IfDisabled>setNOTHING</IfDisabled>
<IsAssembler>false</IsAssembler>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[USED_FACES]
BeanVersion=01.048
BeanVersion=01.049

InterfacesCount=1

Expand Down
2 changes: 1 addition & 1 deletion Drivers/FSL_USB_Stack/Device/source/driver/s08/usb_dci.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ void USB_DCI_Clear_DATA0_Endpoint (
uint_8 bdt_index = USB_DCI_Validate_Param (endpoint_number, direction);
P_BDT_ELEM bdt_elem = &g_bdt_elem[bdt_index];

UNUSED(handle);
/* UNUSED(handle); << EST: removed */

bdt_index = bdt_elem->bdtmap_index;

Expand Down
5 changes: 5 additions & 0 deletions Drivers/sw/FSL_USB_HID_Keyboard_Device.drv
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,11 @@ byte %'ModuleName'%.%App_Task(void)
}
while(transactionOngoing) {
/* wait until we send the next transaction */
%if (CPUDevice="MC9S08JE128") | (CPUDevice="MC9S08JM16") | (CPUDevice="MC9S08JM60") | (CPUDevice="MC9S08JS16") | (CPUDevice="MC9S08MM128")
if (USB_PROCESS_PENDING()) { /* doing this only for MC9S08JE128, MC9S08JM16, MC9S08JM60, MC9S08JS16 and MC9S08MM128 */
USB_Engine();
}
%endif
}
} /* while */
return ERR_OK;
Expand Down
656 changes: 656 additions & 0 deletions Examples/DEMOJM/DEMOJM_USB_HID_Kbd_JM60/.cproject

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Examples/DEMOJM/DEMOJM_USB_HID_Kbd_JM60/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*.apconfig
/*.g_x
/*.g_c
/Documentation
/Generated_Code
/MC9S08JM60
76 changes: 76 additions & 0 deletions Examples/DEMOJM/DEMOJM_USB_HID_Kbd_JM60/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DEMOJM_USB_HID_Kbd_JM60</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.freescale.processorexpert.core.expertprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
<dictionary>
<key>?name?</key>
<value></value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.append_environment</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildArguments</key>
<value>-j16</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildCommand</key>
<value>${GNU_Make_Install_Dir}mingw32-make</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.buildLocation</key>
<value>${ProjDirPath}/MC9S08JM60</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.contents</key>
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
<value>false</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.stopOnError</key>
<value>true</value>
</dictionary>
<dictionary>
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
<value>true</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.freescale.processorexpert.core.expertprojectnature</nature>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#Sat Jun 29 09:10:52 CEST 2013
eclipse.preferences.version=1
hotfix/arm.cdt.toolchain.ErrorParserHotFix=true
hotfix/arm.cdt.toolchain.UIElementValueTypeUpdate=true
hotfix/class\ com.freescale.core.ide.cdt.toolchain.ProjectErrorParserHotFix=true
hotfix/class\ com.freescale.core.ide.cdt.toolchain.QuotePathsHotFix=true
hotfix/class\ com.freescale.core.ide.cdt.toolchain.ToolOptionsUpdateHotFix=true
hotfix/class\ com.freescale.core.ide.cdt.toolchain.UiElementValueTypeHotFix=true
hotfix/coldfire.cdt.toolchain.UIElementValueTypeUpdate=true
hotfix/com.freescale.arm.cdt.toolchain.ToolOptionsUpdate.fileAndProgram_v1=true
hotfix/com.freescale.coldfire.cdt.toolchain=true
hotfix/com.freescale.coldfire.toolchain.ToolOptionsUpdate.fileAndProgram_v1=true
hotfix/com.freescale.core.ide.util.pbhotfix=true
hotfix/com.freescale.dsc.cdt.toolchain=true
hotfix/com.freescale.hc08.cdt.toolchain.FixCommandLinePatternHotFix=true
hotfix/com.freescale.hc08.cdt.toolchain.hc08.cdt.toolchain.UIElementValueTypeUpdate=true
hotfix/com.freescale.ppc.cdt.toolchain=true
hotfix/com.freescale.ppc.toolchain.ToolOptionsUpdate.fileAndProgram_v1=true
hotfix/com.freescale.ppc.toolchain.UIElementValueTypeUpdate.toSymbolFiles=true
hotfix/com.freescale.s12z.cdt.toolchain=true
hotfix/dsc.cdt.toolchain.UIElementValueTypeUpdate=true
hotfix/s12z.cdt.toolchain.UIElementValueTypeUpdate=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Fri Mar 16 07:15:50 CET 2012
eclipse.preferences.version=1
versionGenerated/versionGenerated=1.8.2.FSL_b18_3082-A17
Loading

0 comments on commit 22ec055

Please sign in to comment.