
Bridge
5.3.3Model
Figure 5-6. Firmware Architecture Model
| Common |
| radio driver |
| master |
PSoC Lib | protocol |
| |
mstimer | timer |
usb_1 | flash |
Application |
main |
USB |
encrypt |
mfgtest |
The bridge firmware is partitioned into two logical groups. The Common group is a collection of code modules that provide the underlying support for the application. This group provides services such as, radio protocol, radio driver, USB, timing, flash access, SPI, and interrupts.
The Application group implements the core functionality and features of the RDK wireless bridge. This includes USB HID packet formatting and reporting, encryption, and manufacturing test mode. The code modules for each of these groups are described below in further detail.
All of the following module descriptions have corresponding <module name>.c and <module name>.h source code files. The module API and definitions are exported in the header file while the module implementation and local definitions are contained in the C file.
5.3.4Common Code
The modules consist of the common code logical grouping.
5.3.4.1PSoC Generated Library Code
There are currently only three files generated by PSoC Designer that are modified for the use of the application. A minimal amount of code has been added to these modules in user protected areas that are preserved across code generation.
5.3.4.1.1USB include (USB_1.inc)
This file includes the additional code for the Battery Level and Link Quality software application in USB_1_cls_hid.asm.
82 | CY4672 Reference Design Guide, Document # |
[+] Feedback