error header file rename to mbed_error.h

pull/387/head
0xc0170 2014-07-04 07:58:31 +02:00
parent 19264fc372
commit f7f77392d9
148 changed files with 147 additions and 147 deletions

View File

@ -25,7 +25,7 @@
#include <time.h>
// mbed Debug libraries
#include "error.h"
#include "mbed_error.h"
#include "mbed_interface.h"
// mbed Peripheral components

View File

@ -17,7 +17,7 @@
#include <stdarg.h>
#include "device.h"
#include "toolchain.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_STDIO_MESSAGES
#include <stdio.h>
#endif

View File

@ -19,7 +19,7 @@
#include "gpio_api.h"
#include "wait_api.h"
#include "semihost_api.h"
#include "error.h"
#include "mbed_error.h"
#include "toolchain.h"
#if DEVICE_SEMIHOST

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pinmap_pinout(PinName pin, const PinMap *map) {
if (pin == NC)

View File

@ -383,7 +383,7 @@ extern "C" int mkdir(const char *path, mode_t mode) {
#if defined(TOOLCHAIN_GCC)
/* prevents the exception handling name demangling code getting pulled in */
#include "error.h"
#include "mbed_error.h"
namespace __gnu_cxx {
void __verbose_terminate_handler() {
error("Exception");

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 160

View File

@ -18,7 +18,7 @@
#include "gpio_irq_api.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 64 // 31 pins on 2 ports

View File

@ -18,7 +18,7 @@
#include "gpio_irq_api.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 64

View File

@ -18,7 +18,7 @@
#include "gpio_irq_api.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 96

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define RANGE_12BIT 0xFFF

View File

@ -20,7 +20,7 @@
#include "gpio_api.h"
#include "fsl_gpio_hal.h"
#include "fsl_port_hal.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 160

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#include "fsl_clock_manager.h"
#include "fsl_port_hal.h"

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#include "fsl_clock_manager.h"
#include "fsl_dspi_hal.h"

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 31

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
}

View File

@ -17,7 +17,7 @@
#include "pwmout_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define NO_PWMS 3
#define TIMER_PRECISION 4 //4us ticks

View File

@ -18,7 +18,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{SPI_PSELSCK0 , SPI_0, 0x01},

View File

@ -17,7 +17,7 @@
#include "analogin_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_ANALOGIN

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_INTERRUPTIN

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -17,7 +17,7 @@
#include "pwmout_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_PWMOUT

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_SPI

View File

@ -17,7 +17,7 @@
#include "analogin_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define ANALOGIN_MEDIAN_FILTER 1

View File

@ -16,7 +16,7 @@
#include <stddef.h>
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 8
#define LPC_GPIO_X LPC_GPIO_PIN_INT

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define LPC_IOCON0_BASE (LPC_IOCON_BASE)
#define LPC_IOCON1_BASE (LPC_IOCON_BASE + 0x60)

View File

@ -18,7 +18,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_6 , SPI_0, 0x02},

View File

@ -16,7 +16,7 @@
#include "can_api.h"
#include "cmsis.h"
#include "error.h"
#include "mbed_error.h"
#include <math.h>
#include <string.h>

View File

@ -17,7 +17,7 @@
#include "analogin_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_ADC[] = {
{P0_11, ADC0_0, 2},

View File

@ -16,7 +16,7 @@
#include <stddef.h>
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#include "gpio_api.h"
// The chip is capable of 42 GPIO interrupts.

View File

@ -17,7 +17,7 @@
#include "i2c_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_I2C_SDA[] = {
{P0_5, I2C_0, 1},

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -18,7 +18,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_6 , SPI_0, 0x02},

View File

@ -17,7 +17,7 @@
#include "analogin_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define ANALOGIN_MEDIAN_FILTER 1

View File

@ -16,7 +16,7 @@
#include <stddef.h>
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 8
#define LPC_GPIO_X LPC_GPIO_PIN_INT

View File

@ -17,7 +17,7 @@
#include "i2c_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_I2C_SDA[] = {
{P0_5, I2C_0, 1},

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define LPC_IOCON0_BASE (LPC_IOCON_BASE)
#define LPC_IOCON1_BASE (LPC_IOCON_BASE + 0x60)

View File

@ -18,7 +18,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_6 , SPI_0, 0x02},

View File

@ -17,7 +17,7 @@
#include "can_api.h"
#include "cmsis.h"
#include "error.h"
#include "mbed_error.h"
#include <math.h>
#include <string.h>

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 8
#define LPC_GPIO_X LPC_PINT

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
}

View File

@ -17,7 +17,7 @@
#include "pwmout_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static LPC_SCT0_Type *SCTs[4] = {
(LPC_SCT0_Type*)LPC_SCT0,

View File

@ -21,7 +21,7 @@
#include "serial_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
/******************************************************************************
* INITIALIZATION

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const SWM_Map SWM_SPI_SSEL[] = {
{4, 0},

View File

@ -19,7 +19,7 @@
#include "cmsis.h"
#include "mbed_interface.h"
#include "toolchain.h"
#include "error.h"
#include "mbed_error.h"
#define NEW_LOGIC 0
#define NEW_ETH_BUFFER 0

View File

@ -16,7 +16,7 @@
#include <stddef.h>
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#include "cmsis.h"
#define CHANNEL_NUM 48

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_7 , SPI_1, 2},

View File

@ -19,7 +19,7 @@
#include "cmsis.h"
#include "mbed_interface.h"
#include "toolchain.h"
#include "error.h"
#include "mbed_error.h"
#define NEW_LOGIC 0
#define NEW_ETH_BUFFER 0

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#include <stddef.h>
#include "cmsis.h"

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_7 , SPI_1, 2},

View File

@ -17,7 +17,7 @@
#include "analogin_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define ANALOGIN_MEDIAN_FILTER 1

View File

@ -19,7 +19,7 @@
#include "cmsis.h"
#include "mbed_interface.h"
#include "toolchain.h"
#include "error.h"
#include "mbed_error.h"
#define NEW_LOGIC 0
#define NEW_ETH_BUFFER 0

View File

@ -15,7 +15,7 @@
*/
#include <stddef.h>
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#include "cmsis.h"
#define CHANNEL_NUM 64

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -21,7 +21,7 @@
#include "serial_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
/******************************************************************************
* INITIALIZATION

View File

@ -18,7 +18,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P0_7 , SPI_1, 2},

View File

@ -17,7 +17,7 @@
*/
#include <stddef.h>
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#include "cmsis.h"
/* The LPC43xx implements GPIO pin and group interrupts. Any pin in the

View File

@ -17,7 +17,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
void pin_function(PinName pin, int function) {
MBED_ASSERT(pin != (PinName)NC);

View File

@ -23,7 +23,7 @@
#include "serial_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
/******************************************************************************
* INITIALIZATION

View File

@ -21,7 +21,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const PinMap PinMap_SPI_SCLK[] = {
{P3_0 , SPI_0, (SCU_PINIO_FAST | 2)},

View File

@ -17,7 +17,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "error.h"
#include "mbed_error.h"
#define CHANNEL_NUM 8
#define LPC_GPIO_X LPC_PIN_INT

View File

@ -15,7 +15,7 @@
*/
#include "mbed_assert.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
__IO uint32_t* IOCON_REGISTERS[18] = {
&LPC_IOCON->PIO0_0 , &LPC_IOCON->PIO0_1 , &LPC_IOCON->PIO0_2 ,

View File

@ -21,7 +21,7 @@
#include "serial_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
/******************************************************************************
* INITIALIZATION

View File

@ -19,7 +19,7 @@
#include "spi_api.h"
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
static const SWM_Map SWM_SPI_SSEL[] = {
{4, 16},

View File

@ -32,7 +32,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#include "wait_api.h"
static const PinMap PinMap_ADC[] = {

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "error.h"
#include "mbed_error.h"
// Enable GPIO clock and return GPIO base address
uint32_t Set_GPIO_Clock(uint32_t port_idx) {

View File

@ -33,7 +33,7 @@
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "device.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
// Alternate-function mapping
static const uint32_t AF_mapping[] = {

View File

@ -30,7 +30,7 @@
#include "port_api.h"
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_PORTIN || DEVICE_PORTOUT

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -34,7 +34,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
/* Timeout values for flags and events waiting loops. These timeouts are
not based on accurate values, they just guarantee that the application will

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "error.h"
#include "mbed_error.h"
// Enable GPIO clock and return GPIO base address
uint32_t Set_GPIO_Clock(uint32_t port_idx) {

View File

@ -33,7 +33,7 @@
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -33,7 +33,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
// TIM2 cannot be used because already used by the us_ticker
static const PinMap PinMap_PWM[] = {

View File

@ -31,7 +31,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#include "stm32f4xx_hal.h"
#define RANGE_12BIT (0xFFF)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "error.h"
#include "mbed_error.h"
// GPIO mode look-up table
static const uint32_t gpio_mode[12] = {

View File

@ -30,7 +30,7 @@
#include "port_api.h"
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_PORTIN || DEVICE_PORTOUT

View File

@ -33,7 +33,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
// TIM5 cannot be used because already used by the us_ticker
static const PinMap PinMap_PWM[] = {

View File

@ -30,7 +30,7 @@
#include "rtc_api.h"
#if DEVICE_RTC
#include "error.h"
#include "mbed_error.h"
static int rtc_inited = 0;

View File

@ -32,7 +32,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#include "wait_api.h"
static const PinMap PinMap_ADC[] = {

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "error.h"
#include "mbed_error.h"
// Enable GPIO clock and return GPIO base address
uint32_t Set_GPIO_Clock(uint32_t port_idx) {

View File

@ -33,7 +33,7 @@
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -32,7 +32,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define DAC_RANGE (0xFFF) // 12 bits

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "gpio_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
extern uint32_t Set_GPIO_Clock(uint32_t port_idx);

View File

@ -31,7 +31,7 @@
#include "cmsis.h"
#include "gpio_irq_api.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
#define EDGE_NONE (0)
#define EDGE_RISE (1)

View File

@ -30,7 +30,7 @@
#include "mbed_assert.h"
#include "pinmap.h"
#include "PortNames.h"
#include "error.h"
#include "mbed_error.h"
// GPIO mode look-up table
static const uint32_t gpio_mode[12] = {

View File

@ -30,7 +30,7 @@
#include "port_api.h"
#include "pinmap.h"
#include "gpio_api.h"
#include "error.h"
#include "mbed_error.h"
#if DEVICE_PORTIN || DEVICE_PORTOUT

View File

@ -33,7 +33,7 @@
#include "cmsis.h"
#include "pinmap.h"
#include "error.h"
#include "mbed_error.h"
// TIM2 cannot be used because already used by the us_ticker
static const PinMap PinMap_PWM[] = {

View File

@ -31,7 +31,7 @@
#if DEVICE_RTC
#include "error.h"
#include "mbed_error.h"
static int rtc_inited = 0;

Some files were not shown because too many files have changed in this diff Show More