diff options
| author | hathach <[email protected]> | 2018-03-28 14:49:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-28 14:49:00 +0700 |
| commit | 03a4f02b89ccd4bddbfa0b117771ca1905d9f4a6 (patch) | |
| tree | 8801b27fa93787d75cc558b9e9407215b8ce2b40 /tinyusb/class/msc | |
| parent | 0d3e66fa0a274d2482d6bbb6dea80508dcd614de (diff) | |
rename ASSERT to TU_ASSERT to avoid name conflict
Diffstat (limited to 'tinyusb/class/msc')
| -rw-r--r-- | tinyusb/class/msc/msc_device.c | 4 | ||||
| -rw-r--r-- | tinyusb/class/msc/msc_host.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/msc/msc_device.c b/tinyusb/class/msc/msc_device.c index b5a29ad91..6f0e6b69b 100644 --- a/tinyusb/class/msc/msc_device.c +++ b/tinyusb/class/msc/msc_device.c @@ -215,8 +215,8 @@ tusb_error_t mscd_xfer_cb(uint8_t rhport, uint8_t ep_addr, tusb_event_t event, u else
{
// Data Phase (non READ10, WRITE10)
- ASSERT( p_cbw->xfer_bytes >= p_msc->data_len, TUSB_ERROR_INVALID_PARA );
- ASSERT( sizeof(p_msc->scsi_data) >= p_msc->data_len, TUSB_ERROR_NOT_ENOUGH_MEMORY); // needs to increase size for scsi_data
+ TU_ASSERT( p_cbw->xfer_bytes >= p_msc->data_len, TUSB_ERROR_INVALID_PARA );
+ TU_ASSERT( sizeof(p_msc->scsi_data) >= p_msc->data_len, TUSB_ERROR_NOT_ENOUGH_MEMORY); // needs to increase size for scsi_data
uint8_t const ep_data = BIT_TEST_(p_cbw->dir, 7) ? p_msc->ep_in : p_msc->ep_out;
diff --git a/tinyusb/class/msc/msc_host.c b/tinyusb/class/msc/msc_host.c index 37a243a20..65d51b5bf 100644 --- a/tinyusb/class/msc/msc_host.c +++ b/tinyusb/class/msc/msc_host.c @@ -91,7 +91,7 @@ uint8_t const* tuh_msc_get_product_name(uint8_t dev_addr) tusb_error_t tuh_msc_get_capacity(uint8_t dev_addr, uint32_t* p_last_lba, uint32_t* p_block_size)
{
if ( !msch_data[dev_addr-1].is_initialized ) return TUSB_ERROR_MSCH_DEVICE_NOT_MOUNTED;
- ASSERT(p_last_lba != NULL && p_block_size != NULL, TUSB_ERROR_INVALID_PARA);
+ TU_ASSERT(p_last_lba != NULL && p_block_size != NULL, TUSB_ERROR_INVALID_PARA);
(*p_last_lba) = msch_data[dev_addr-1].last_lba;
(*p_block_size) = (uint32_t) msch_data[dev_addr-1].block_size;
|
