wdp_common.lst
来自「非常全的nrf2401设计资料」· LST 代码 · 共 66 行
LST
66 行
C51 COMPILER V7.50 WDP_COMMON 04/09/2009 10:12:51 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE WDP_COMMON
OBJECT MODULE PLACED IN .\build\wdp_common.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\..\..\comp\protocol\wdp\common\wdp_common.c LARGE OMF2 OPTIMIZE(9,SPE
-ED) BROWSE INCDIR(..\common;..\..\..\..\comp\protocol\wdp\common\;..\..\..\..\comp\protocol\wdp\host\;..\..\..\..\arch\h
-al\include;..\..\..\..\arch\hal\nrf24lu1;..\..\..\..\arch\nrf24lu1;..\common;..\..\..\..\comp\protocol\fap) DEBUG PRINT(
-.\lst\wdp_common.lst) OBJECT(.\build\wdp_common.obj)
line level source
1 /* Copyright (c) 2007 Nordic Semiconductor. All Rights Reserved.
2 *
3 * The information contained herein is property of Nordic Semiconductor ASA.
4 * Terms and conditions of usage are described in detail in NORDIC
5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6 *
7 * Licensees are granted free, non-transferable use of the information. NO
8 * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
9 * the file.
10 *
11 * $LastChangedRevision: 2290 $
12 */
13
14 /** @file
15 * Common source file for Wireless Desktop Protocol device/host
16 *
17 * @author Lasse Olsen
18 *
19 */
20
21 #include "wdp_common.h"
22
23 void wdp_extract_channels(uint8_t seed, uint8_t *ch_tab)
24 {
25 1 uint8_t index;
26 1 uint8_t rand_var;
27 1
28 1 rand_var = seed;
29 1
30 1 for(index = 0; index < FAP_CH_TAB_SIZE; index++)
31 1 {
32 2 rand_var += 67;
33 2 *(ch_tab+index) = (rand_var % WDP_CH_BIN_SIZE) + (index * WDP_CH_BIN_SIZE + WDP_CH_LOW);
34 2 }
35 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 60 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 3
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
EDATA SIZE = ---- ----
HDATA SIZE = ---- ----
XDATA CONST SIZE = ---- ----
FAR CONST SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?