mbed-os/targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE
TomoYamanaka b528fbdfb3 Implementation of USTICKER feature for Renesas mbed boards
I implemented USTICKER feature.

The mainly changing is here.
- I added a macro to mbed_drv_cfg.h for commonalizing code for GR-PEACH and GR-LYCHEE with different clock frequencies, and referenced it's macro at us_ticker.c.
- ticker_init()
  Currently, ticker_init() keep counting, disables the ticker interrupt, and is safe to call repeatedly.
  Therefore, in order to satisfy specifications, I removed GIC_EnableIRQ at end of function and added GIC_DisableIRQ at begin of function.
  When an interrupt is required, it will be set with ticker_set_interrupt().
  If executing the following, the counter has been initialized. So it will not call after executing the first time.
    OSTM1TT   = 0x01;    /* Stop the counter and clears the OSTM1TE bit.     */
    OSTM1TS   = 0x1;    /* Start the counter and sets the OSTM0TE bit.     */

- ticker_free()
  this function stops the counting and powerdown the us_ticker.
  To satisfy the mbed specificationm, I implemented free() function.

- ticker_read()
  Currently, Mbed spec's frequeny is between 250KHz and 8MHz, but the frequency that is used at my ticker is 33MHz.
  Therefore, in order to satisfy specifications, I changed the process to return the timer counter value divided by 32(33MHz / 32).
  Since the calcurate function by using 64 bit is no longer necessay, I removed it.

- ticker_set_interrupt()
  Same as the above read(),
  In order to satisfy specifications, I changed the process to set the value multiplied by 32.

- ticker_fire_interrupt()
  In order to satisfy specifications, I implemented fire_interrupt() function.
  Also I added GIC_EnableIRQ for allowing the interrupt at end of function.

- ticker_get_info()
  To satisfy the mbed specificationm, I implemented ticker_get_info() function. The value of freq includes rounding off.
2018-05-25 12:22:06 -05:00
..
TARGET_MBED_MBRZA1LU Add license header on top in reserved_pins.h 2018-01-19 18:39:37 +09:00
device Fix platform failing to build after rebase 2018-05-14 12:18:21 +01:00
PeripheralNames.h Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE 2018-01-16 13:34:35 +09:00
PeripheralPins.c Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE 2018-01-16 13:34:35 +09:00
PinNames.h Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE 2018-01-16 13:34:35 +09:00
PortNames.h Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE 2018-01-16 13:34:35 +09:00
device.h Add startup processing having CMSIS5/RTX5 been available on GR-LYCHEE 2018-01-16 13:34:35 +09:00
mbed_drv_cfg.h Implementation of USTICKER feature for Renesas mbed boards 2018-05-25 12:22:06 -05:00
trng_api_esp32.cpp [RZ_A1LU] Fix TRNG function 2018-02-06 15:44:33 +09:00