diff options
| -rw-r--r-- | bsp/stm32_radio/remote.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bsp/stm32_radio/remote.c b/bsp/stm32_radio/remote.c index fae3062ab7..40fb46f392 100644 --- a/bsp/stm32_radio/remote.c +++ b/bsp/stm32_radio/remote.c @@ -1,5 +1,5 @@ /*
-+-----------------------
++----------------------------------------------------
|
| ������ѧϰң��
|
@@ -7,6 +7,7 @@ | Date Author Notes
| 2010-01-02 aozima The bate version.
| 2010-02-10 aozima change printf string ���� to english.
+| 2010-03-25 aozima add remote_fn define.
+----------------------------------------------------
*/
@@ -19,7 +20,8 @@ /* ��������ƫ��,��λ0.01ms */
#define remote_deviation 15
#define remote_code_len_max 100
-
+/* ���������ļ���ȫ·�� */
+#define remote_fn "/resource/remote.txt"
/* ����ģʽ 0:û����,1:��ѧϰ,2:�������� */
unsigned int rem_mode = 0;
@@ -155,7 +157,7 @@ void rem_start(void) unsigned int EOF_flag = 1;
printf("\r\ndecode remote codes");
- fd = open("/resource/remote.txt",O_RDONLY,0);
+ fd = open(remote_fn,O_RDONLY,0);
if( fd>0 )
{
printf("\r/resource/remote.txt open succeed");
@@ -403,7 +405,7 @@ int rem_study(void) rem_mode = 1;
rx_count = 0;
printf("\r\nremote studing.....");
- fd = open("/resource/remote.txt",O_WRONLY | O_TRUNC,0);
+ fd = open(remote_fn,O_WRONLY | O_TRUNC,0);
if( !(fd<0) )
{
printf("\r\n/resource/remote.txt create succeed.");
|
