A N 6 9 2
68
Rev 0.4
5.4.8. Size Optimization of the Common Software Modules
To optimize the code size of the common software modules as well as the example source codes, software
switches must be introduced in almost every module. By enabling these switches, new functions can be added to
the whole project to compile. If the switch is not defined at the beginning of the 'bsp.h' header file, then only the
basic features can be used. It is barely sufficient for most of the example codes.
The rest of the module's features can be added to the project by defining the following switches:
TIMER_DRIVER_EXTENDED_SUPPORT
SPI_DRIVER_EXTENDED_SUPPORT
HMI_DRIVER_EXTENDED_SUPPORT
UART_DRIVER_EXTENDED_SUPPORT
The control_IO and PCA modules are quite simple, so there is no need to use driver extension in these cases.
Figure 47. Usage of Software Switches
Table 10 shows which module can support the driver expansion feature:
Table 10. Size Optimization Possibilities for Common Software Module
Common Software Module
Software Switch
Minimal Driver
Extended Driver
Control IO
default
Not supported
Timer
default
TIMER_DRIVER_EXTENDED_SUPPORT
PCA
default
Not supported
SPI
default
SPI_DRIVER_EXTENDED_SUPPORT
HMI
default
HMI_DRIVER_EXTENDED_SUPPORT
UART
default
UART_DRIVER_EXTENDED_SUPPORT
Summary of Contents for Si4455 Series
Page 8: ...AN692 8 Rev 0 4 Figure 6 Device Configuration Options ...
Page 22: ...AN692 22 Rev 0 4 Figure 21 Supply Current versus Time Diagram from Shutdown to RX State ...
Page 23: ...AN692 Rev 0 4 23 4 4 Radio Chip Waking Up Figure 22 Radio Wake Up Process ...
Page 35: ...AN692 Rev 0 4 35 Figure 32 Transmission Flowchart ...
Page 39: ...AN692 Rev 0 4 39 Figure 33 Reception Flowchart ...
Page 41: ...AN692 Rev 0 4 41 Figure 34 Bidirectional Variable Packet Example Project Flowchart ...
Page 47: ...AN692 Rev 0 4 47 Figure 41 Long Packet Transmission Flowchart ...
Page 48: ...AN692 48 Rev 0 4 Figure 42 Long Packet RX Flowchart ...