summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-07-06 11:20:53 +0000
committer[email protected] <[email protected]>2012-07-06 11:20:53 +0000
commit25268ad23d67e2d006931e5ced4067d8898df972 (patch)
tree5261d207db49d11cca6534b9bcc272cd477297a1
parent08f329d5f79c69d226d221b4136d419a93add600 (diff)
Add more symbols export for application module.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2205 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--include/rtthread.h1
-rw-r--r--src/device.c10
-rw-r--r--src/irq.c6
3 files changed, 17 insertions, 0 deletions
diff --git a/include/rtthread.h b/include/rtthread.h
index b4fceb1d7e..3da93a29b0 100644
--- a/include/rtthread.h
+++ b/include/rtthread.h
@@ -23,6 +23,7 @@
#include <rtdef.h>
#include <rtdebug.h>
#include <rtservice.h>
+#include <rtm.h>
#ifdef __cplusplus
extern "C" {
diff --git a/src/device.c b/src/device.c
index 60335a941f..10b052cc85 100644
--- a/src/device.c
+++ b/src/device.c
@@ -36,6 +36,7 @@ rt_err_t rt_device_register(rt_device_t dev, const char *name, rt_uint16_t flags
return RT_EOK;
}
+RTM_EXPORT(rt_device_register);
/**
* This function removes a previously registered device driver
@@ -52,6 +53,7 @@ rt_err_t rt_device_unregister(rt_device_t dev)
return RT_EOK;
}
+RTM_EXPORT(rt_device_unregister);
/**
* This function initializes all registered device driver
@@ -136,6 +138,7 @@ rt_device_t rt_device_find(const char *name)
/* not found */
return RT_NULL;
}
+RTM_EXPORT(rt_device_find);
/**
* This function will initialize the specified device
@@ -231,6 +234,7 @@ rt_err_t rt_device_open(rt_device_t dev, rt_uint16_t oflag)
return result;
}
+RTM_EXPORT(rt_device_open);
/**
* This function will close a device
@@ -264,6 +268,7 @@ rt_err_t rt_device_close(rt_device_t dev)
return result;
}
+RTM_EXPORT(rt_device_close);
/**
* This function will read some data from a device.
@@ -295,6 +300,7 @@ rt_size_t rt_device_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t
return 0;
}
+RTM_EXPORT(rt_device_read);
/**
* This function will write some data to a device.
@@ -326,6 +332,7 @@ rt_size_t rt_device_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_
return 0;
}
+RTM_EXPORT(rt_device_write);
/**
* This function will perform a variety of control functions on devices.
@@ -351,6 +358,7 @@ rt_err_t rt_device_control(rt_device_t dev, rt_uint8_t cmd, void *arg)
return -RT_ENOSYS;
}
+RTM_EXPORT(rt_device_control);
/**
* This function will set the indication callback function when device receives
@@ -369,6 +377,7 @@ rt_err_t rt_device_set_rx_indicate(rt_device_t dev, rt_err_t (*rx_ind)(rt_device
return RT_EOK;
}
+RTM_EXPORT(rt_device_set_rx_indicate);
/**
* This function will set the indication callback function when device has written
@@ -387,5 +396,6 @@ rt_err_t rt_device_set_tx_complete(rt_device_t dev, rt_err_t (*tx_done)(rt_devic
return RT_EOK;
}
+RTM_EXPORT(rt_device_set_tx_complete);
#endif
diff --git a/src/irq.c b/src/irq.c
index ef13e8466c..f006f7b675 100644
--- a/src/irq.c
+++ b/src/irq.c
@@ -43,6 +43,7 @@ void rt_interrupt_enter(void)
rt_interrupt_nest ++;
rt_hw_interrupt_enable(level);
}
+RTM_EXPORT(rt_interrupt_enter);
/**
* This function will be invoked by BSP, when leave interrupt service routine
@@ -61,6 +62,7 @@ void rt_interrupt_leave(void)
rt_interrupt_nest --;
rt_hw_interrupt_enable(level);
}
+RTM_EXPORT(rt_interrupt_leave);
/**
* This function will return the nest of interrupt.
@@ -74,6 +76,10 @@ rt_uint8_t rt_interrupt_get_nest(void)
{
return rt_interrupt_nest;
}
+RTM_EXPORT(rt_interrupt_get_nest);
+
+RTM_EXPORT(rt_hw_interrupt_disable);
+RTM_EXPORT(rt_hw_interrupt_enable);
/*@}*/