Graphics framework for GR-PEACH. When you use this program, we judge you have agreed to the following contents. https://developer.mbed.org/teams/Renesas/wiki/About-LICENSE

Dependents:   ImageZoomInout_Sample ImageRotaion_Sample ImageScroll_Sample GR-PEACH_LCD_4_3inch_Save_to_USB ... more

Embed: (wiki syntax)

« Back to documentation index

locking.c File Reference

locking.c File Reference

Lock related FIT BSP. More...

Go to the source code of this file.

Functions

bool_t R_BSP_HardwareLock (mcu_lock_t const HardwareIndex)
 Attempts to reserve a hardware peripheral lock.
errnum_t R_OSPL_LockUnlockedChannel (int_fast32_t *out_ChannelNum, mcu_lock_t HardwareIndexMin, mcu_lock_t HardwareIndexMax)
 LockUnlockedChannel.
bool_t R_BSP_HardwareUnlock (mcu_lock_t const HardwareIndex)
 Releases a hardware peripheral lock.
bool_t R_BSP_SoftwareLock (BSP_CFG_USER_LOCKING_TYPE *const LockObject)
 Attempts to reserve a lock.
bool_t R_BSP_SoftwareUnlock (BSP_CFG_USER_LOCKING_TYPE *const LockObject)
 Releases a lock.
errnum_t R_OSPL_Start_T_Lock (void)
 The function callbacked from OSPL internal, when T-Lock started.
void R_OSPL_End_T_Lock (void)
 The function callbacked from OSPL internal, when T-Lock ended.

Variables

static osMutexId gs_ospl_mutex
 gs_ospl_mutex
BSP_CFG_USER_LOCKING_TYPE g_bsp_Locks [BSP_NUM_LOCKS]
 g_bsp_Locks

Detailed Description

Lock related FIT BSP.

Module:
OSPL
PublicVersion:
0.90

(=R_OSPL_VERSION)

Rev:
35
Date:
2014-04-15 21:38:18 +0900#

Definition in file locking.c.


Function Documentation

bool_t R_BSP_HardwareLock ( mcu_lock_t const   HardwareIndex )

Attempts to reserve a hardware peripheral lock.

Parameters:
HardwareIndexIndex of lock to acquire from the hardware lock array.
Returns:
true = Successful, false = Failure

Definition at line 78 of file locking.c.

bool_t R_BSP_HardwareUnlock ( mcu_lock_t const   HardwareIndex )

Releases a hardware peripheral lock.

Parameters:
HardwareIndexIndex of lock to release from the hardware lock array.
Returns:
true = Successful, false = Failure

Definition at line 196 of file locking.c.

bool_t R_BSP_SoftwareLock ( BSP_CFG_USER_LOCKING_TYPE *const   LockObject )

Attempts to reserve a lock.

Parameters:
LockObjectPointer to lock structure with lock to try and acquire.
Returns:
true = Successful, false = Failure

Definition at line 242 of file locking.c.

bool_t R_BSP_SoftwareUnlock ( BSP_CFG_USER_LOCKING_TYPE *const   LockObject )

Releases a lock.

Parameters:
LockObjectPointer to lock structure with lock to release.
Returns:
true = Successful, false = Failure

Definition at line 288 of file locking.c.

void R_OSPL_End_T_Lock ( void   )

The function callbacked from OSPL internal, when T-Lock ended.

Ends T-Lock.

Parameters
None
Returns:
None

Definition at line 379 of file locking.c.

errnum_t R_OSPL_LockUnlockedChannel ( int_fast32_t *  out_ChannelNum,
mcu_lock_t  HardwareIndexMin,
mcu_lock_t  HardwareIndexMax 
)

LockUnlockedChannel.

Parameters:
out_ChannelNumChannelNum
HardwareIndexMinHardwareIndexMin
HardwareIndexMaxHardwareIndexMax
Returns:
Error Code. 0=No Error.

Definition at line 122 of file locking.c.

errnum_t R_OSPL_Start_T_Lock ( void   )

The function callbacked from OSPL internal, when T-Lock started.

Starts T-Lock.

Parameters
None
Returns:
Error Code. 0=No Error.

Definition at line 340 of file locking.c.


Variable Documentation

BSP_CFG_USER_LOCKING_TYPE g_bsp_Locks[BSP_NUM_LOCKS]

g_bsp_Locks

Definition at line 72 of file locking.c.

osMutexId gs_ospl_mutex [static]

gs_ospl_mutex

Definition at line 67 of file locking.c.