FSP Configuration
  Board "Custom User Board (Any Device)"
  R7FA4E10B2CNE
    part_number: R7FA4E10B2CNE
    rom_size_bytes: 262144
    ram_size_bytes: 131072
    data_flash_size_bytes: 8192
    package_style: QFN
    package_pins: 48
    
  RA4E1
    series: 4
    
  RA4E1 Family
    Enable inline BSP IRQ functions: Enabled
    Security: Exceptions: Exception Response: Non-Maskable Interrupt
    Security: Exceptions: BusFault, HardFault, and NMI Target: Secure State
    Security: System Reset Request Accessibility: Secure State
    Security: Exceptions: Prioritize Secure Exceptions: Disabled
    Security: System Reset Status Accessibility: Both Secure and Non-Secure State
    Security: Battery Backup Accessibility: Both Secure and Non-Secure State
    Security: SRAM Accessibility: SRAM Protection: Both Secure and Non-Secure State
    Security: SRAM Accessibility: Standby RAM: Regions 7-0 are all Secure.
    Security: BUS Accessibility: Bus Security Attribution Register A: Both Secure and Non-Secure State
    Security: BUS Accessibility: Bus Security Attribution Register B: Both Secure and Non-Secure State
    Security: Uninitialized Non-Secure Application Fallback: Enable Uninitialized Non-Secure Application Fallback
    OFS0 register settings: Independent WDT: Start Mode: IWDT is stopped after a reset
    OFS0 register settings: Independent WDT: Timeout Period: 2048 cycles
    OFS0 register settings: Independent WDT: Dedicated Clock Frequency Divisor: 128
    OFS0 register settings: Independent WDT: Window End Position:  0% (no window end position)
    OFS0 register settings: Independent WDT: Window Start Position: 100% (no window start position)
    OFS0 register settings: Independent WDT: Reset Interrupt Request Select: Reset is enabled
    OFS0 register settings: Independent WDT: Stop Control: Stop counting when in Sleep, Snooze mode, or Software Standby
    OFS0 register settings: WDT: Start Mode Select: Stop WDT after a reset (register-start mode)
    OFS0 register settings: WDT: Timeout Period: 16384 cycles
    OFS0 register settings: WDT: Clock Frequency Division Ratio: 128
    OFS0 register settings: WDT: Window End Position:  0% (no window end position)
    OFS0 register settings: WDT: Window Start Position: 100% (no window start position)
    OFS0 register settings: WDT: Reset Interrupt Request: Reset
    OFS0 register settings: WDT: Stop Control: Stop counting when entering Sleep mode
    OFS1_SEL register settings: Voltage Detection 0 Level Security Attribution: VDSEL setting loads from OFS1_SEC
    OFS1_SEL register settings: Voltage Detection 0 Circuit Start Security Attribution: LVDAS setting loads from OFS1_SEC
    OFS1 register settings: Voltage Detection 0 Circuit Start: Voltage monitor 0 reset is disabled after reset
    OFS1 register settings: Voltage Detection 0 Level: 2.80 V
    OFS1 register settings: HOCO Oscillation Enable: HOCO oscillation is enabled after reset
    Block Protection Settings (BPS): BPS: 
    Permanent Block Protection Settings (PBPS): PBPS: 
    Clocks: HOCO FLL Function: Disabled
    Main Oscillator Wait Time: 8163 cycles
    
  RA4E1 event data
  RA Common
    Main stack size (bytes): 0x400
    Heap size (bytes): 0x400
    MCU Vcc (mV): 3300
    Parameter checking: Enabled
    Assert Failures: Return FSP_ERR_ASSERTION
    Error Log: No Error Log
    Clock Registers not Reset Values during Startup: Disabled
    Main Oscillator Populated: Not Populated
    PFS Protect: Enabled
    C Runtime Initialization : Enabled
    Early BSP Initialization : Disabled
    Main Oscillator Clock Source: Crystal or Resonator
    Subclock Populated: Not Populated
    Subclock Drive (Drive capacitance availability varies by MCU): Standard/Normal mode
    Subclock Stabilization Time (ms): 1000
    
  Clocks
    XTAL 24000000Hz
    HOCO 20MHz
    PLL Src: HOCO
    PLL Div /2
    PLL Mul x20.0
    PLL2 Src: HOCO
    PLL2 Div /2
    PLL2 Mul x24.0
    Clock Src: PLL
    CLKOUT Disabled
    UCLK Src: PLL2
    ICLK Div /2
    PCLKA Div /2
    PCLKB Div /4
    PCLKC Div /4
    PCLKD Div /2
    FCLK Div /4
    CLKOUT Div /1
    UCLK Div /5
    
  Pin Configurations
    R7FA4E10B2CNE.pincfg -> g_bsp_pin_cfg
      AVCC0 42 SYSTEM_AVCC0 - - - - - - - - IO "Read only" - 
      AVSS0 43 SYSTEM_AVSS0 - - - - - - - - IO "Read only" - 
      P000 48 GPIO - - None "Input mode" - - "ADC0: AN000; ICU: IRQ6-DS" - IO - - 
      P001 47 GPIO - L None "Output mode (Initial Low)" - - "ADC0: AN001; ICU: IRQ7-DS" - IO - - 
      P002 46 GPIO - - None "Input mode" - - "ADC0: AN002; ICU: IRQ8-DS" - IO - - 
      P013 40 GPIO - - - "Input mode" - - "ADC0: AN011" - IO - - 
      P014 39 GPIO - L - "Output mode (Initial High)" - - "ADC0: AN012; DAC120: DA0" - IO - - 
      P015 38 GPIO - L None "Output mode (Initial High)" - - "ADC0: AN013; ICU: IRQ13" - IO - - 
      P100 36 SCI0_RXD0 - L None "Peripheral mode" - - "AGT0: AGTIO0; GPT5: GTIOC5B; GPT_POEGA: GTETRGA; ICU: IRQ2; QSPI: QSPCLK; SCI0: RXD0" - I - - 
      P101 35 SCI0_TXD0 - L None "Peripheral mode" - - "AGT0: AGTEE0; GPT5: GTIOC5A; GPT_POEGB: GTETRGB; ICU: IRQ1; QSPI: QIO1; SCI0: TXD0" - O - - 
      P102 34 SCI0_SCK0 - L - "Peripheral mode" - - "ADC0: ADTRG0; AGT0: AGTO0; CAN0: CRX0; GPT2: GTIOC2B; QSPI: QIO0; SCI0: SCK0" - IO - - 
      P103 33 GPIO - L - "Output mode (Initial High)" - - "AGT2: AGTIO2; CAN0: CTX0; GPT2: GTIOC2A; QSPI: QIO3; SCI0: CTS_RTS0" - IO - - 
      P104 32 ICU_IRQ1 - - IRQ1 "IRQ mode" - - "AGT2: AGTEE2; GPT1: GTIOC1B; GPT_POEGB: GTETRGB; ICU: IRQ1; QSPI: QIO2" - IO - - 
      P108 25 JTAG/SWD_TMS - L - "Peripheral mode" - - "AGT3: AGTOA3; JTAG/SWD: SWDIO; JTAG/SWD: TMS; SCI9: CTS_RTS9; SPI0: SSLA0" - IO - - 
      P109 26 JTAG/SWD_TDO - M - "Peripheral mode" - - "AGT3: AGTOB3; CGC: CLKOUT; GPT1: GTIOC1A; JTAG/SWD: TDO; JTAG/SWD: TRACESWO; SCI9: TXD9; SPI0: MOSI0" - IO - - 
      P110 27 JTAG/SWD_TDI - M None "Peripheral mode" - - "AGT3: AGTEE3; GPT1: GTIOC1B; ICU: IRQ3; JTAG/SWD: TDI; SCI9: RXD9; SPI0: MISO0" - IO - - 
      P111 28 GPIO - L None "Output mode (Initial Low)" - - "AGT5: AGTOA5; ICU: IRQ4; SCI9: SCK9; SPI0: RSPCK0" - IO - - 
      P112 29 GPIO - L - "Output mode (Initial High)" - - "AGT5: AGTOB5; QSPI: QSSL; SPI0: SSLA0" - IO - - 
      P200 21 - - - - Disabled - - "ICU: NMI" - None - - 
      P201 20 - - - - Disabled - - "SYSTEM: MD" - None - - 
      P206 18 GPIO - - None "Input mode" - - "ICU: IRQ0-DS; SCI4: RXD4; SCI9: CTS9; USB FS: USB_VBUSEN" - IO - - 
      P207 17 GPIO - - - "Input mode" - - "QSPI: QSSL; SCI4: TXD4" - IO - - 
      P212 8 - - - - Disabled - - "AGT1: AGTEE1; CGC: EXTAL; GPT_POEGD: GTETRGD; ICU: IRQ3" - None - - 
      P213 7 - - - - Disabled - - "AGT2: AGTEE2; CGC: XTAL; GPT_POEGC: GTETRGC; ICU: IRQ2" - None - - 
      P300 24 JTAG/SWD_TCK - L - "Peripheral mode" - - "JTAG/SWD: SWCLK; JTAG/SWD: TCK; SPI0: SSLA1" - IO - - 
      P301 23 GPIO - H None "Output mode (Initial High)" - - "AGT0: AGTIO0; GPT4: GTIOC4B; ICU: IRQ6; SCI9: CTS_RTS9; SPI0: SSLA2" - IO - - 
      P302 22 GPIO - H None "Output mode (Initial High)" - - "GPT4: GTIOC4A; ICU: IRQ5; SPI0: SSLA3" - IO - - 
      P402 1 - - - - Disabled - - "AGT0: AGTIO0; AGT1: AGTIO1; AGT2: AGTIO2; AGT3: AGTIO3; CAC: CACREF; CAN0: CRX0; ICU: IRQ4-DS; RTC: RTCIC0; SCI4: CTS4" - None - - 
      P407 12 "USB FS_USB_VBUS" - M - "Peripheral mode" - - "ADC0: ADTRG0; AGT0: AGTIO0; IIC0: SDA0; RTC: RTCOUT; SCI4: CTS_RTS4; USB FS: USB_VBUS" - IO - - 
      P408 11 SCI3_RXD3 - L None "Peripheral mode" - - "AGT2: AGTOB2; ICU: IRQ7; IIC0: SCL0; SCI3: RXD3; SCI4: CTS4" - I - - 
      P409 10 SCI3_TXD3 - L None "Peripheral mode" - - "AGT2: AGTOA2; ICU: IRQ6; SCI3: TXD3" - O - - 
      P500 37 - - - - Disabled - - "ADC0: AN016; AGT0: AGTOA0; CAC: CACREF; QSPI: QSPCLK; USB FS: USB_VBUSEN" - None - - 
      RES 19 SYSTEM_RES - - - - - - - - IO "Read only" - 
      USB_DM 14 SYSTEM_USB_DM - - - - - - - - IO "Read only" - 
      USB_DP 15 SYSTEM_USB_DP - - - - - - - - IO "Read only" - 
      VBATT 2 SYSTEM_VBATT - - - - - - - - IO "Read only" - 
      VCC 30 SYSTEM_VCC - - - - - - - - IO "Read only" - 
      VCC 9 SYSTEM_VCC - - - - - - - - IO "Read only" - 
      VCC_USB 16 SYSTEM_VCC_USB - - - - - - - - IO "Read only" - 
      VCL0 3 SYSTEM_VCL0 - - - - - - - - IO "Read only" - 
      VREFH 41 SYSTEM_VREFH - - - - - - - - IO "Read only" - 
      VREFH0 45 SYSTEM_VREFH0 - - - - - - - - IO "Read only" - 
      VREFL0 44 SYSTEM_VREFL0 - - - - - - - - IO "Read only" - 
      VSS 31 SYSTEM_VSS - - - - - - - - IO "Read only" - 
      VSS 6 SYSTEM_VSS - - - - - - - - IO "Read only" - 
      VSS_USB 13 SYSTEM_VSS_USB - - - - - - - - IO "Read only" - 
      XCIN 4 CGC_XCIN - - - - - - - - IO "Read only" - 
      XCOUT 5 CGC_XCOUT - - - - - - - - IO "Read only" - 
    
  User Events
    
  User Event Links
    
  Module "I/O Port (r_ioport)"
    Parameter Checking: Default (BSP)
    
  Module "USB PCDC (r_usb_pcdc)"
    Bulk In Pipe: USB PIPE3
    Bulk Out Pipe: USB PIPE4
    Interrupt In Pipe: USB PIPE6
    
  Module "USB (r_usb_basic)"
    Parameter Checking: Default (BSP)
    PLL Frequency: Not Supported
    CPU Bus Access Wait Cycles: Not Supported
    Battery Charging: Not Supported
    Power IC Shutdown Polarity: Active High
    Dedicated Charging Port (DCP) Mode: Not Supported
    Notifications for SET_INTERFACE/SET_FEATURE/CLEAR_FEATURE: Enabled
    Double Buffering: Enabled
    Continuous Transfer Mode: Not Supported
    LDO Regulator: Disabled
    Type-C: Not Supported
    DMA Support: Disabled
    DMA Source Address: DMA Disabled
    DMA Destination Address: DMA Disabled
    USB Compliance Test mode: Disabled
    USB TPL table name: NULL
    
  Module "I2C Master (r_sci_i2c)"
    Parameter Checking: Default (BSP)
    DTC on Transmission and Reception: Disabled
    10-bit slave addressing: Disabled
    
  Module "SPI (r_sci_spi)"
    Parameter Checking: Default (BSP)
    DTC Support: Disabled
    
  Module "External IRQ (r_icu)"
    Parameter Checking: Default (BSP)
    
  Module "CRC (r_crc)"
    Parameter Checking: Default (BSP)
    
  Module "Timer, Low-Power (r_agt)"
    Parameter Checking: Default (BSP)
    Pin Output Support: Disabled
    Pin Input Support: Disabled
    
  Module "Low Power Modes (r_lpm)"
    Parameter Checking: Default (BSP)
    Standby Limit: Disabled
    
  HAL
    Instance "g_ioport I/O Port (r_ioport)"
      Name: g_ioport
      1st Port ELC Trigger Source: Disabled
      2nd Port ELC Trigger Source: Disabled
      3rd Port ELC Trigger Source: Disabled
      4th Port ELC Trigger Source: Disabled
      Pin Configuration Name: g_bsp_pin_cfg
      
    Instance "g_pcdc0 USB PCDC (r_usb_pcdc)"
      Name: g_pcdc0
      
      Instance "g_basic0 USB (r_usb_basic)"
        Name: g_basic0
        USB Mode: Peri mode
        USB Speed: Full Speed
        USB Module Number: USB_IP0 Port
        USB Device Class: Peripheral Communications Device Class
        USB Descriptor: g_usb_descriptor
        USB Compliance Callback: NULL
        USBFS Interrupt Priority: Priority 10
        USBFS Resume Priority: Priority 10
        USBFS D0FIFO Interrupt Priority: Priority 10
        USBFS D1FIFO Interrupt Priority: Priority 10
        USBHS Interrupt Priority: Not Supported
        USBHS D0FIFO Interrupt Priority: Not Supported
        USBHS D1FIFO Interrupt Priority: Not Supported
        USB Callback: NULL
        USB Callback Context: NULL
        
    Instance "g_i2c0 I2C Master (r_sci_i2c)"
      Name: g_i2c0
      Channel: 3
      Slave Address : 0x00
      Address Mode: 7-Bit
      Rate: Fast-mode
      Custom Rate (bps): 0
      SDA Output Delay (nano seconds): 300
      Noise filter setting: Use clock signal divided by 1 with noise filter
      Bit Rate Modulation: Enable
      Callback: sci_i2c_master_callback
      Interrupt Priority Level: Priority 1
      RX Interrupt Priority Level [Only used when DTC is enabled]: Disabled
      
    Instance "g_spi0 SPI (r_sci_spi)"
      Name: g_spi0
      Channel: 0
      Operating Mode: Master
      Clock Phase: Data sampling on odd edge, data variation on even edge
      Clock Polarity: Low when idle
      Mode Fault Error: Disable
      Bit Order: MSB First
      Callback: sci_spi_callback
      Receive Interrupt Priority: Priority 1
      Transmit Interrupt Priority: Priority 1
      Transmit End Interrupt Priority: Priority 1
      Error Interrupt Priority: Priority 1
      Bitrate: 2000000
      Bitrate Modulation: Enabled
      
    Instance "g_alert_irq0 External IRQ (r_icu)"
      Name: g_alert_irq0
      Channel: 1
      Trigger: Falling
      Digital Filtering: Enabled
      Digital Filtering Sample Clock (Only valid when Digital Filtering is Enabled): PCLK / 64
      Callback: alert_irq_callback
      Pin Interrupt Priority: Priority 5
      
    Instance "g_crc_ccitt CRC (r_crc)"
      Name: g_crc_ccitt
      CRC Polynomial: CRC-CCITT
      Bit Order: LSB
      Snoop Address: Not Supported
      
    Instance "g_timer1 Timer, Low-Power (r_agt)"
      General: Name: g_timer1
      General: Counter Bit Width: AGT 16-bit
      General: Channel: 1
      General: Mode: Periodic
      General: Period: 125
      General: Period Unit: Milliseconds
      Output: Duty Cycle Percent (only applicable in PWM mode): 50
      General: Count Source: LOCO
      Output: AGTOA Output: Disabled
      Output: AGTOB Output: Disabled
      Output: AGTO Output: Disabled
      Input: Measurement Mode: Measure Disabled
      Input: Input Filter: No Filter
      Input: Enable Pin: Enable Pin Not Used
      Input: Trigger Edge: Trigger Edge Rising
      Interrupts: Callback: timer1_callback
      Interrupts: Underflow Interrupt Priority: Priority 12
      
    Instance "g_lpm_sleep Low Power Modes (r_lpm)"
      General: Name: g_lpm_sleep
      General: Low Power Mode: Sleep mode
      General: Output port state in standby and deep standby: Not Supported
      General: Supply of SOSC clock to peripheral function in standby: Not Supported
      General: Startup speed of the HOCO in Standby and Snooze modes: Not Supported
      General: Flash mode in sleep or snooze: Not Supported
      Deep Sleep and Standby Options: Wake Sources: AGT1 Underflow
      Deep Sleep and Standby Options: Wake Sources 2: 
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze Request Source: IRQ0
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze End Sources: AGT1 Underflow
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): DTC state in Snooze Mode: Disabled
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze Cancel Source: None
      RAM Retention Control (Not available on every MCU): RAM retention in Standby mode: 
      RAM Retention Control (Not available on every MCU): TCM retention in Deep Sleep and Standby modes: Not Supported
      RAM Retention Control (Not available on every MCU): Standby RAM retention in Standby and Deep Standby modes: Not Supported
      Oscillator LDO Control (Not available on every MCU): PLL1 LDO State in standby mode: Not Supported
      Oscillator LDO Control (Not available on every MCU): PLL2 LDO State in standby mode: Not Supported
      Oscillator LDO Control (Not available on every MCU): HOCO LDO State in standby mode: Not Supported
      Deep Standby Options (Not available on every MCU): I/O Port Retention: Maintain the IO port states
      Deep Standby Options (Not available on every MCU): Power-Supply Control: Cut the power supply to LVDn, Standby RAM, low-speed on-chip oscillator, AGTn (n = 0-3), and USBFS resume detecting unit.Enable low power function of power-on reset circuit
      Deep Standby Options (Not available on every MCU): Cancel Sources: 
      Deep Standby Options (Not available on every MCU): Cancel Edges: 
      
    Instance "g_lpm_deep_sw_standby Low Power Modes (r_lpm)"
      General: Name: g_lpm_deep_sw_standby
      General: Low Power Mode: Deep Software Standby mode
      General: Output port state in standby and deep standby: Not Supported
      General: Supply of SOSC clock to peripheral function in standby: Not Supported
      General: Startup speed of the HOCO in Standby and Snooze modes: Not Supported
      General: Flash mode in sleep or snooze: Not Supported
      Deep Sleep and Standby Options: Wake Sources: 
      Deep Sleep and Standby Options: Wake Sources 2: 
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze Request Source: RXD0 falling edge
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze End Sources: 
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): DTC state in Snooze Mode: Disabled
      Deep Sleep and Standby Options: Snooze Options (Not available on every MCU): Snooze Cancel Source: None
      RAM Retention Control (Not available on every MCU): RAM retention in Standby mode: 
      RAM Retention Control (Not available on every MCU): TCM retention in Deep Sleep and Standby modes: Not Supported
      RAM Retention Control (Not available on every MCU): Standby RAM retention in Standby and Deep Standby modes: Not Supported
      Oscillator LDO Control (Not available on every MCU): PLL1 LDO State in standby mode: Not Supported
      Oscillator LDO Control (Not available on every MCU): PLL2 LDO State in standby mode: Not Supported
      Oscillator LDO Control (Not available on every MCU): HOCO LDO State in standby mode: Not Supported
      Deep Standby Options (Not available on every MCU): I/O Port Retention: Maintain the IO port states
      Deep Standby Options (Not available on every MCU): Power-Supply Control: Cut the power supply to LVDn, Standby RAM, low-speed on-chip oscillator, AGTn (n = 0-3), and USBFS resume detecting unit.Enable low power function of power-on reset circuit
      Deep Standby Options (Not available on every MCU): Cancel Sources: 
      Deep Standby Options (Not available on every MCU): Cancel Edges: 
      
