Ignore:
Timestamp:
May 11, 2017, 7:49:17 PM (7 years ago)
Author:
max@…
Message:

Typos, and cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_atomic.h

    r16 r17  
    11/*
    22 * hal_atomic.h - Generic Atomic Operations API definition.
    3  * 
     3 *
    44 * Authors   Alain Greiner    (2016)
    55 *
    66 * Copyright (c)  UPMC Sorbonne Universites
    7  * 
     7 *
    88 * This file is part of ALMOS-MKH.
    99 *
     
    2929
    3030//////////////////////////////////////////////////////////////////////////////////////////
    31 //            Generic Atomic Operations API (implementation in hal_atomic.c) 
     31//            Generic Atomic Operations API (implementation in hal_atomic.c)
    3232//
    33 // Atomic read-then-write operations depends on the CPU instruction set.
     33// Atomic read-then-write operations depend on the CPU instruction set.
    3434// ALMOS-MKH uses the following generic API.
    3535//////////////////////////////////////////////////////////////////////////////////////////
     
    4040 *****************************************************************************************
    4141 * @ ptr     : pointer on the shared variable
    42  * @ val     : mask value 
     42 * @ val     : mask value
    4343 ****************************************************************************************/
    4444void hal_atomic_and( uint32_t * ptr,
     
    8585
    8686/*****************************************************************************************
    87  * This NON blocking function makes an atomic Compare-And-Swap on a 32 bits unsigned int 
     87 * This NON blocking function makes an atomic Compare-And-Swap on a 32 bits unsigned int
    8888 * shared variable, returning a Boolean to indicate both success and atomicity.
    8989 *****************************************************************************************
     
    9898
    9999/*****************************************************************************************
    100  * This non blocking function makes an atomic Test-if-zero-And-Set on a 32 bits unsigned 
     100 * This non blocking function makes an atomic Test-if-zero-And-Set on a 32 bits unsigned
    101101 * int shared variable, returning a Boolean to indicate both success and atomicity.
    102102 *****************************************************************************************
     
    105105 * @ return true if (current == 0) and (access is atomic)
    106106 ****************************************************************************************/
    107 bool_t hal_atomic_test_set( uint32_t * ptr, 
     107bool_t hal_atomic_test_set( uint32_t * ptr,
    108108                            uint32_t   val );
    109109
Note: See TracChangeset for help on using the changeset viewer.