Commit Graph

13 Commits (mbed-os-5.7)

Author SHA1 Message Date
Dave Wu 37cc8a2876 Cleared data structures in analogin_init();
Set buffer for 1 sample in analogin_read_u16. Before it assumes the
buffer is set outside by the higher layer. Now it's temporarily
located on the stack since only the ADC value is returned.
2018-01-12 15:01:44 +00:00
Edmund Hsu 1cdd4a936e Realign ADuCM4x50 and ADuCM302x instance memory blocks
Ensure all instance memory blocks meet 4 byte alignment requirement
  without relying on compiler's or liker's optional settings:
  - gpioMemory[]                                    for adi_gpio_Init()
  - aRtcDevMem0[]                                   for adi_rtc_Open()
  - i2c_Mem[] or I2C_Mem[]                          for adi_i2c_Open()
  - spi_Mem0[], spi_Mem1[], spi_Mem2[] or SPI_Mem[] for adi_spi_Open()
2017-12-20 16:05:41 +00:00
Dave Wu 9e0e9c8bee Added a check for the STUCK bit before reading the RNG data register to ensure there are no hardware faults. 2017-11-02 15:50:55 +11:00
Wu 2eff4c7569 - Added code to clear temporary variable on the stack before exiting the
trng_get_bytes;
- Removed lp ticker as it does not satisfy the requirements of the lp
timer.
2017-10-30 02:16:55 +01:00
Dave Wu de2b5264e2 Added default delay and sample times for the ADC during initialization. 2017-10-12 12:46:54 +11:00
Dave Wu 6d116273c7 - Cleaned up some formatting issues; - Fixed a build error in spi_master_block_write; - Some clean up in serai_api. 2017-10-11 15:06:49 +11:00
Dave Wu 6f9a54777d Added curly brackets for the single line if else statement. 2017-10-09 17:28:46 +11:00
Dave Wu 5ea792cc9a - Added error checking for trng_get_bytes function;
- Added curly brackets to single line conditions in gpio_qpi.c and gpio_irq_api.c;
- Changed rx and tx buffers in serial module as local variables;
- Minor i2c & spi updates for github pull request;
- Added function definition for spi_master_block_write.
2017-10-09 17:13:58 +11:00
Dave Wu c196ad241d Removed undefined spi slave related functions. 2017-10-03 15:00:42 +11:00
Dave Wu c942171a99 - Fixed an issue where the TRNG device is read even when it is not ready;
- Added a configuration call in trng_init to make sure the TRNG buffering mode is disabled, so only 8-bit bytes are returned;
- Moved the TRNG device handle into the trng_t structure;
- Fixed some formatting errors in the adc driver.
2017-10-03 14:21:37 +11:00
Dave Wu 7cf9bf5c3d - Added definiton for i2c_reset;
- Removed unneeded code from i2c and serial modules.
2017-10-02 15:34:19 +11:00
Dave Wu ce580dde74 Fixed issues raised in the feedback from ARM for the ADuCM4050 platform. 2017-10-02 14:28:25 +11:00
Dave Wu 00b1e72e49 Added support for ADI EV-COG-AD4050LZ platform. 2017-09-20 14:37:22 +10:00