⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_descriptor.a51

📁 此资料是关于51单片机与射频芯片CC1100和2500的联合开发示例程序。
💻 A51
字号:
;; DUMMY APPLICATION DESCRIPTOR

#define ASM_FILE
#include "app_descriptor.h"


;;-------------------------------------------------------------------------------------------------------
appDescData     SEGMENT CODE;
                RSEG    appDescData;

;; Dummy function which is called by the bootloader instead of chip detection and USB event handler
DummyFunc:
                RET;

;;  Application descriptor + USB configuration, interface and endpoint descriptors
		        ; SmartRF04EB application descriptor
                PUBLIC appDesc;
appDesc:        DW 0DDDDH;              ; Firmware ID (0400 for the standard SmartRF04EB firmware)
                DW 0DDDDH;              ; Firmware revision
                DW DummyFunc;           ; Pointer to the chip detection function
                DW DummyFunc;           ; Pointer common USB interrupt handler
                DW DummyFunc;           ; Pointer to the USB vendor request handler
                DW DummyFunc;           ; Pointer to the USB IN endpoint handler
                DW DummyFunc;           ; Pointer to the chip detection function

usbConfigDesc:  ; USB configuration descriptor
                DB 09H;                 ; Length
                DB 02H;                 ; Type
                DW 1200H;               ; Totallength
                DB 01H;                 ; NumInterfaces
                DB 01H;                 ; bConfigurationValue
                DB 00H;                 ; iConfiguration
                DB 40H;                 ; bmAttributes
                DB 50;                  ; MaxPower

                ; USB interface descriptor
usbIfDesc:      DB 09H;                 ; bLength
                DB 04H;                 ; bDescriptorType
                DB 00H;                 ; bInterfaceNumber
                DB 00H;                 ; bAlternateSetting
                DB 00H;                 ; bNumEndpoints
                DB 0FFH;                ; bInterfaceClass
                DB 0FFH;                ; bInterfaceSubClass
                DB 0FFH;                ; bInterfaceProcotol
                DB 00H;                 ; iInterface
appDescEnd:
;;-------------------------------------------------------------------------------------------------------


;;-------------------------------------------------------------------------------------------------------
;;  Magic word used by the bootloader
                CSEG  AT      846H;
                DB MAGIC_WORD_0;
                DB MAGIC_WORD_1;
                DB MAGIC_WORD_2;
                DW appDesc;
;;-------------------------------------------------------------------------------------------------------


                END;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -