summaryrefslogtreecommitdiffstats
path: root/bsps/shared/dev/rtc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/shared: Fix Coverity warning in MCP7940MChristian Mauderer2023-08-031-3/+2
| | | | | | | | | | Fixes the following Coverity warning: ** CID 1539495: Integer handling issues (CONSTANT_EXPRESSION_RESULT) /bsps/shared/dev/rtc/mcp7940m.c: 317 in mcp7940m_set_time() Basically coverity warns that (buf[...] & 0x7) can't be bigger than 7. Just remove the unnecessary comparison.
* bsps/shared: Add MCP7940M RTC driverChristian Mauderer2023-08-011-0/+362
| | | | | | | The MCP7940M is a I2C RTC chip. The new driver uses the dev/i2c API to support the RTC. It is written with the intention, that the driver can be adapted to other RTCs with a similar register layout by just replacing the initialization function.
* bsps/shared/*: Change license to BSD-2Joel Sherrill2022-06-1513-39/+286
| | | | Updates #3053.
* rtems: Constify rtems_task_wake_when()Sebastian Huber2021-05-121-1/+1
| | | | | | | | | | | | | | | | Add a parameter to _TOD_Validate() to disable the validation of the ticks member. There are two reasons for this change. Firstly, in rtems_task_wake_when() was a double check for time_buffer == NULL (one in rtems_task_wake_when() and one in _TOD_Validate()). Secondly, the ticks member is ignored by rtems_task_wake_when(). This was done with a write of zero to the ticks member and thus a modification of the user-provided structure. Now the structure is no longer modified. Using a mask parameter is quite efficient. You just have to load an immediate value and there are no additional branches in _TOD_Validate(). Close #4406.
* _TOD_Validate(): Fix incorrect return codeFrank Kühndel2021-05-121-1/+1
| | | | | | | | | | | | | | | This patch fixes bug #4403. Directives * rtems_timer_fire_when() * rtems_timer_server_fire_when() * rtems_task_wake_when() are documented to return RTEMS_INVALID_ADDRESS when their time-of-day argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix the issue this patch changes _TOD_Validate() to return a status code instead of just true/false. Close #4403
* rtems: Add <rtems/rtems/clockimpl.h>Sebastian Huber2020-12-022-0/+2
|
* bsps: Move tod.c to bsps and renameSebastian Huber2018-04-161-0/+287
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* bsps: Move libchip to bspsSebastian Huber2018-04-0420-0/+1417
This patch is a part of the BSP source reorganization. Update #3285.