SDCard version
Fork of gr-peach-opencv-project-sd-card by
platform/mbed_assert.c@167:2ee3e82cb6f5, 2017-07-21 (annotated)
- Committer:
- thedo
- Date:
- Fri Jul 21 01:26:54 2017 +0000
- Revision:
- 167:2ee3e82cb6f5
gr-peach-opencv-project-sd-card
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thedo | 167:2ee3e82cb6f5 | 1 | /* mbed Microcontroller Library |
thedo | 167:2ee3e82cb6f5 | 2 | * Copyright (c) 2006-2013 ARM Limited |
thedo | 167:2ee3e82cb6f5 | 3 | * |
thedo | 167:2ee3e82cb6f5 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
thedo | 167:2ee3e82cb6f5 | 5 | * you may not use this file except in compliance with the License. |
thedo | 167:2ee3e82cb6f5 | 6 | * You may obtain a copy of the License at |
thedo | 167:2ee3e82cb6f5 | 7 | * |
thedo | 167:2ee3e82cb6f5 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
thedo | 167:2ee3e82cb6f5 | 9 | * |
thedo | 167:2ee3e82cb6f5 | 10 | * Unless required by applicable law or agreed to in writing, software |
thedo | 167:2ee3e82cb6f5 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
thedo | 167:2ee3e82cb6f5 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
thedo | 167:2ee3e82cb6f5 | 13 | * See the License for the specific language governing permissions and |
thedo | 167:2ee3e82cb6f5 | 14 | * limitations under the License. |
thedo | 167:2ee3e82cb6f5 | 15 | */ |
thedo | 167:2ee3e82cb6f5 | 16 | #include "platform/mbed_assert.h" |
thedo | 167:2ee3e82cb6f5 | 17 | #include "device.h" |
thedo | 167:2ee3e82cb6f5 | 18 | |
thedo | 167:2ee3e82cb6f5 | 19 | #include "platform/mbed_interface.h" |
thedo | 167:2ee3e82cb6f5 | 20 | #include "platform/mbed_critical.h" |
thedo | 167:2ee3e82cb6f5 | 21 | |
thedo | 167:2ee3e82cb6f5 | 22 | void mbed_assert_internal(const char *expr, const char *file, int line) |
thedo | 167:2ee3e82cb6f5 | 23 | { |
thedo | 167:2ee3e82cb6f5 | 24 | core_util_critical_section_enter(); |
thedo | 167:2ee3e82cb6f5 | 25 | mbed_error_printf("mbed assertation failed: %s, file: %s, line %d \n", expr, file, line); |
thedo | 167:2ee3e82cb6f5 | 26 | mbed_die(); |
thedo | 167:2ee3e82cb6f5 | 27 | } |
thedo | 167:2ee3e82cb6f5 | 28 |