Cypress CY4672 manual Timer, Isr, Application

Models: CY4672

1 126
Download 126 pages 13.98 Kb
Page 60
Image 60

Keyboard

4.3.3Model

Figure 4-7. Firmware Architecture Model

 

Common

flash

radio driver

 

protocol

PSoC Lib

 

tick

timer

GPIO

isr

 

Application

keyboard

encryption

 

battery

 

mfgtest

The keyboard 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, timing, flash access, and interrupts.

The Application group implements the core functionality and features of RDK wireless keyboard. This includes power management, encryption, packet formatting and reporting, various test modes, and battery level sensing. 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 or <module name>.asm 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/ assembly file.

4.3.4Common Code

The modules in the common code group are a combination of two sources. The first is PSoC Designer generated files in the ‘lib’ directory that have been modified to support the application. The second group is modules that are generally used by the application.

4.3.4.1Generated Library Code

There are currently no files, generated by PSoC Designer, that are modified for the use of the appli- cation.

4.3.4.2Radio Driver

The radio driver module is a low level module providing basic radio communication and configura- tion. Its general application is such that it is likely not to be changed by the firmware developer. It provides an interface for reading/writing radio registers, setting PN codes and initialization of the radio and transmitting or receiving packets. See the Radio Driver documentation for details.

60

CY4672 Reference Design Guide, Document # 001-16968 Revision **

[+] Feedback

Page 60
Image 60
Cypress CY4672 manual Timer, Isr, Application