AN633
Rev. 0.7
41
9.4.8. Size Optimization of the Common Software Modules
To optimize the code size of the common software modules and consequently 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, which 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 30. Usage of Software Switches
Table 6 shows which module can support the driver expansion feature:
Table 6. Size Optimization Possibilities for Common Software Modules
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
Содержание EZRADIOPRO Si4060
Страница 24: ...AN633 24 Rev 0 7 Figure 20 Supply Current versus Time Diagram from Shutdown to RX State...
Страница 67: ...AN633 Rev 0 7 67 Figure 48 Variable Length Packet Reception Flowchart...
Страница 69: ...AN633 Rev 0 7 69 Figure 50 Packet Matching Reception Flowchart...
Страница 73: ...AN633 Rev 0 7 73 Figure 54 Packet Reception with Automatic RX Hopping Flowchart...
Страница 75: ...AN633 Rev 0 7 75 Figure 56 Packet Reception with Manual Rx Hopping...
Страница 80: ...AN633 80 Rev 0 7 Figure 62 Long Packet Transmission Workflow...
Страница 81: ...AN633 Rev 0 7 81 Figure 63 Long Packet RX Flowchart...