summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-14 10:19:44 +0700
committerhathach <[email protected]>2014-03-14 10:19:44 +0700
commit214af7e9885f100d4f4d1882e9305899b6afc2b7 (patch)
tree2758f140eb1bdbcda18108671afc5d8b822b0cea
parent97cce2fa58fef84b58808f1861767a4c05dea8e7 (diff)
zero warnings compiling host os none on keil
-rw-r--r--demos/host/host_os_none/host_os_none.uvopt24
-rw-r--r--tinyusb/class/msc_host.h2
-rw-r--r--tinyusb/hal/hal_lpc175x_6x.c8
-rw-r--r--tinyusb/hal/hal_lpc175x_6x.h1
4 files changed, 18 insertions, 17 deletions
diff --git a/demos/host/host_os_none/host_os_none.uvopt b/demos/host/host_os_none/host_os_none.uvopt
index 4790d5e0a..d54fd60d0 100644
--- a/demos/host/host_os_none/host_os_none.uvopt
+++ b/demos/host/host_os_none/host_os_none.uvopt
@@ -928,10 +928,10 @@
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
- <ColumnNumber>12</ColumnNumber>
+ <ColumnNumber>1</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>141</TopLine>
- <CurrentLine>160</CurrentLine>
+ <TopLine>122</TopLine>
+ <CurrentLine>142</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\src\msc_app.c</PathWithFileName>
<FilenameWithoutPath>msc_app.c</FilenameWithoutPath>
@@ -1018,8 +1018,8 @@
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>0</TopLine>
- <CurrentLine>0</CurrentLine>
+ <TopLine>147</TopLine>
+ <CurrentLine>166</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\tinyusb\host\hub.c</PathWithFileName>
<FilenameWithoutPath>hub.c</FilenameWithoutPath>
@@ -1114,7 +1114,7 @@
<Focus>0</Focus>
<ColumnNumber>17</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>31</TopLine>
+ <TopLine>32</TopLine>
<CurrentLine>45</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\tinyusb\hal\hal_lpc175x_6x.c</PathWithFileName>
@@ -1160,10 +1160,10 @@
<FileType>1</FileType>
<tvExp>0</tvExp>
<Focus>0</Focus>
- <ColumnNumber>6</ColumnNumber>
+ <ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>250</TopLine>
- <CurrentLine>271</CurrentLine>
+ <TopLine>1</TopLine>
+ <CurrentLine>34</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\tinyusb\class\cdc_host.c</PathWithFileName>
<FilenameWithoutPath>cdc_host.c</FilenameWithoutPath>
@@ -1210,8 +1210,8 @@
<Focus>0</Focus>
<ColumnNumber>0</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>359</TopLine>
- <CurrentLine>380</CurrentLine>
+ <TopLine>1</TopLine>
+ <CurrentLine>1</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\tinyusb\class\msc_host.c</PathWithFileName>
<FilenameWithoutPath>msc_host.c</FilenameWithoutPath>
@@ -1306,7 +1306,7 @@
<Focus>0</Focus>
<ColumnNumber>63</ColumnNumber>
<tvExpOptDlg>0</tvExpOptDlg>
- <TopLine>583</TopLine>
+ <TopLine>584</TopLine>
<CurrentLine>605</CurrentLine>
<bDave2>0</bDave2>
<PathWithFileName>..\..\..\tinyusb\host\ohci\ohci.c</PathWithFileName>
diff --git a/tinyusb/class/msc_host.h b/tinyusb/class/msc_host.h
index 3dcf18704..46ee139dd 100644
--- a/tinyusb/class/msc_host.h
+++ b/tinyusb/class/msc_host.h
@@ -139,7 +139,7 @@ tusb_error_t tusbh_msc_write10(uint8_t dev_addr, uint8_t lun, void const * p_buf
* \retval TUSB_ERROR_INVALID_PARA if input parameters are not correct
* \note This function is non-blocking and returns immediately. The result of USB transfer will be reported by the interface's callback function
*/
-tusb_error_t tusbh_msc_request_sense(uint8_t dev_addr, uint8_t lun, uint8_t *p_data) ATTR_WARN_UNUSED_RESULT;
+tusb_error_t tusbh_msc_request_sense(uint8_t dev_addr, uint8_t lun, uint8_t *p_data);
/** \brief Perform SCSI TEST UNIT READY command to test if MassStorage device is ready
* \param[in] dev_addr device address
diff --git a/tinyusb/hal/hal_lpc175x_6x.c b/tinyusb/hal/hal_lpc175x_6x.c
index bb840a40d..c04b1660c 100644
--- a/tinyusb/hal/hal_lpc175x_6x.c
+++ b/tinyusb/hal/hal_lpc175x_6x.c
@@ -47,11 +47,13 @@
tusb_error_t hal_init(void)
{
enum {
- USBCLK_DEVCIE = 0x12, // AHB + Device
- USBCLK_HOST = 0x19 // AHB + Host + OTG (!)
+ USBCLK_DEVCIE = 0x12, // AHB + Device
+ USBCLK_HOST = 0x19, // AHB + Host + OTG (!)
+
+ PCONP_PCUSB = BIT_(31)
};
- LPC_SC->PCONP |= CLKPWR_PCONP_PCUSB; // enable USB Peripherals
+ LPC_SC->PCONP |= PCONP_PCUSB; // enable USB Peripherals
//------------- user manual 11.13 usb device controller initialization -------------//
PINSEL_ConfigPin( &(PINSEL_CFG_Type) { .Portnum = 0, .Pinnum = 29, .Funcnum = 1} ); // P0.29 as D+
diff --git a/tinyusb/hal/hal_lpc175x_6x.h b/tinyusb/hal/hal_lpc175x_6x.h
index 47b38747b..e0ab4f59a 100644
--- a/tinyusb/hal/hal_lpc175x_6x.h
+++ b/tinyusb/hal/hal_lpc175x_6x.h
@@ -47,7 +47,6 @@
#define _TUSB_HAL_LPC175X_6X_H_
#include "LPC17xx.h"
-#include "lpc17xx_clkpwr.h"
#include "lpc17xx_pinsel.h"
#ifdef __cplusplus