82 CY4672 Reference Design Guide, Document # 001-16968 Revision **
Bridge
5.3.3 Model
Figure 5-6. Firmware Architecture Model
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.4 Common Code
The modules consist of the common code logical grouping.
5.3.4.1 PSoC 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.1 USB 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.
radio driver
master
protocol
timer
flash
main
USB
encrypt
mfgtest
mstimer
usb_1
Common
PSoC Lib
Applicat ion
[+] Feedback