![]() |
RZ Flexible Software Package Documentation
Release v4.0.0
|
|
Variables | |
| uint32_t SystemCoreClock | BSP_SECTION_EARLY_INIT |
Common macro for FSP header files. There is also a corresponding FSP_FOOTER macro at the end of this file.
| enum bsp_io_port_t |
Superset list of all possible IO ports.
| enum bsp_io_port_pin_t |
Superset list of all possible IO port pins.
| enum canfd_error_t |
CANFD Error Code
| enum canfd_rx_buffer_t |
CANFD Receive Buffer (MB + FIFO)
| enum canfd_rx_fifo_t |
CANFD Receive FIFO (RX FIFO)
| enum canfd_rx_mb_t |
CANFD Receive Message Buffer (RX MB)
| enum canfd_tx_buffer_t |
CANFD Transmit Buffer (MB + CFIFO)
| enum canfd_tx_mb_t |
CANFD Transmit Message Buffer (TX MB)
master access control.
| enum fsp_acc_control_ip_t |
access control.
| enum fsp_ip_t |
Available modules.
| enum ether_phy_lsi_type_t |
Phy LSI
| enum elc_peripheral_t |
Possible peripherals to be linked to event signals (not all available on all MPUs)
| enum elc_software_event_t |
| enum gpt_poeg_link_t |
POEG channel to link to this channel.
| enum gpt_source_t |
Sources can be used to start the timer, stop the timer, count up, or count down. These enumerations represent a bitmask. Multiple sources can be ORed together.
| enum ioport_cfg_options_t |
Options to configure pin functions
| enum spi_b_clock_source_t |
SPI communication clock source.
| enum transfer_event_t |
Events that can trigger a callback function.
| enum transfer_mode_t |
Transfer mode describes what will happen when a transfer request occurs.
| Enumerator | |
|---|---|
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_REPEAT | Repeat mode is like normal mode, except that when the transfer length reaches 0, the pointer to the repeat area and the transfer length will be reset to their initial values. If DMAC is used, the transfer repeats only transfer_info_t::num_blocks times. After the transfer repeats transfer_info_t::num_blocks times, transfer requests will not cause any further transfers. If DTC is used, the transfer repeats continuously (no limit to the number of repeat transfers). |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_REPEAT_BLOCK | In addition to block mode features, repeat-block mode supports a ring buffer of blocks and offsets within a block (to split blocks into arrays of their first data, second data, etc.) |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| enum transfer_size_t |
Transfer size specifies the size of each individual transfer.
| enum transfer_addr_mode_t |
Address mode specifies whether to modify (increment or decrement) pointer after each transfer.
| Enumerator | |
|---|---|
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_OFFSET | Offset is added to the address pointer after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_DECREMENTED | Address pointer is decremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| enum ether_event_t |
Detection method of the external DMA request signal.
| enum canfd_tx_buffer_t |
CANFD Transmit Buffer (MB + CFIFO)
| enum canfd_tx_mb_t |
CANFD Transmit Message Buffer (TX MB)
| enum transfer_event_t |
Events that can trigger a callback function.
| enum transfer_mode_t |
Transfer mode describes what will happen when a transfer request occurs.
| Enumerator | |
|---|---|
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_REPEAT | Repeat mode is like normal mode, except that when the transfer length reaches 0, the pointer to the repeat area and the transfer length will be reset to their initial values. If DMAC is used, the transfer repeats only transfer_info_t::num_blocks times. After the transfer repeats transfer_info_t::num_blocks times, transfer requests will not cause any further transfers. If DTC is used, the transfer repeats continuously (no limit to the number of repeat transfers). |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_REPEAT_BLOCK | In addition to block mode features, repeat-block mode supports a ring buffer of blocks and offsets within a block (to split blocks into arrays of their first data, second data, etc.) |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| enum transfer_size_t |
Transfer size specifies the size of each individual transfer.
| enum transfer_addr_mode_t |
Address mode specifies whether to modify (increment or decrement) pointer after each transfer.
| Enumerator | |
|---|---|
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_OFFSET | Offset is added to the address pointer after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_DECREMENTED | Address pointer is decremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| enum bsp_io_port_t |
Superset list of all possible IO ports.
| enum bsp_io_port_pin_t |
Superset list of all possible IO port pins.
| enum canfd_error_t |
CANFD Error Code
| enum canfd_rx_buffer_t |
CANFD Receive Buffer (MB + FIFO)
| enum canfd_rx_fifo_t |
CANFD Receive FIFO (RX FIFO)
| enum canfd_rx_mb_t |
CANFD Receive Message Buffer (RX MB)
| enum canfd_tx_buffer_t |
CANFD Transmit Buffer (MB + CFIFO)
| enum canfd_tx_mb_t |
CANFD Transmit Message Buffer (TX MB)
| enum fsp_acc_control_ip_t |
access control.
| enum fsp_ip_t |
Available modules.
master access control.
| enum elc_peripheral_t |
Possible peripherals to be linked to event signals (not all available on all MPUs)
| enum elc_software_event_t |
| enum gpt_poeg_link_t |
POEG channel to link to this channel.
| enum gpt_source_t |
Sources can be used to start the timer, stop the timer, count up, or count down. These enumerations represent a bitmask. Multiple sources can be ORed together.
| enum ioport_cfg_options_t |
Options to configure pin functions
| enum spi_b_clock_source_t |
SPI communication clock source.
| enum transfer_event_t |
Events that can trigger a callback function.
| enum transfer_mode_t |
Transfer mode describes what will happen when a transfer request occurs.
| Enumerator | |
|---|---|
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_REPEAT | Repeat mode is like normal mode, except that when the transfer length reaches 0, the pointer to the repeat area and the transfer length will be reset to their initial values. If DMAC is used, the transfer repeats only transfer_info_t::num_blocks times. After the transfer repeats transfer_info_t::num_blocks times, transfer requests will not cause any further transfers. If DTC is used, the transfer repeats continuously (no limit to the number of repeat transfers). |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_REPEAT_BLOCK | In addition to block mode features, repeat-block mode supports a ring buffer of blocks and offsets within a block (to split blocks into arrays of their first data, second data, etc.) |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| TRANSFER_MODE_NORMAL | In normal mode, each transfer request causes a transfer of transfer_size_t from the source pointer to the destination pointer. The transfer length is decremented and the source and address pointers are updated according to transfer_addr_mode_t. After the transfer length reaches 0, transfer requests will not cause any further transfers. Normal mode. |
| TRANSFER_MODE_BLOCK | In block mode, each transfer request causes transfer_info_t::length transfers of transfer_size_t. After each individual transfer, the source and destination pointers are updated according to transfer_addr_mode_t. After the block transfer is complete, transfer_info_t::num_blocks is decremented. After the transfer_info_t::num_blocks reaches 0, transfer requests will not cause any further transfers. Block mode. |
| enum transfer_size_t |
Transfer size specifies the size of each individual transfer.
| enum transfer_addr_mode_t |
Address mode specifies whether to modify (increment or decrement) pointer after each transfer.
| Enumerator | |
|---|---|
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_OFFSET | Offset is added to the address pointer after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_DECREMENTED | Address pointer is decremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| TRANSFER_ADDR_MODE_INCREMENTED | Address pointer is incremented by associated transfer_size_t after each transfer. |
| TRANSFER_ADDR_MODE_FIXED | Address pointer remains fixed after each transfer. |
| void RZV::SystemCoreClockUpdate | ( | void | ) |
Update SystemCoreClock variable based on current clock settings.
| void RZV::bsp_clock_init | ( | void | ) |
Initializes system clocks. Makes no assumptions about current register settings.
| void RZV::bsp_clock_freq_init_cfg | ( | void | ) |
Clock frequency configuration. According to the information specified in the Clocks tab, the divider and clock selector are initialized.
| void RZV::bsp_prv_clock_selector_set | ( | fsp_priv_clock_selector_t | selector, |
| uint32_t | clock_sel | ||
| ) |
Set the Mux Control register to change the frequency.
| [in] | selector | Element number of the array that defines the clock selector. |
| [in] | clock_sel | Value to set in Mux Control register. |
| void RZV::bsp_prv_clock_divider_set | ( | fsp_priv_clock_divider_t | divider, |
| uint32_t | clock_div | ||
| ) |
Set the Gear Control register to change the frequency.
| [in] | divider | Element number of the array that defines the clock divider. |
| [in] | clock_div | Value to set in Gear Control register. |
| void bsp_irq_cfg | ( | void | ) |
Initialize interrupt controller.
| None | In this device, this function does nothing. This function is written to share code with other devices. |
Using the vector table information section that has been built by the linker and placed into ROM in the .vector_info. section, this function will initialize the ICU so that configured ELC events will trigger interrupts in the NVIC.
| void RZV::bsp_irq_cfg_s | ( | void | ) |
This function provides clock to DMA Controller (see section 'Precaution when use the peripheral modules which can initiate DMA Controller.' in the user's manual for detail) and enables IM33. It also enables any interrupt in a non-secure state.
| void RZV::bsp_common_interrupt_handler | ( | uint32_t | id | ) |
This function is called first when an interrupt is generated and branches to each interrupt isr function.
| [in] | id | GIC INTID used to identify the interrupt. |
| __WEAK void RZV::IRQ_Handler | ( | void | ) |
IRQ handler Function.