Ehrenberg firmware headers generated with peakrdl 1.2.8
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Generated at 2024-06-08 13:20:02 UTC
|
||||
* by peakrdl_mnrs version 1.2.5
|
||||
* Generated at 2024-08-02 08:46:07 UTC
|
||||
* by peakrdl_mnrs version 1.2.7
|
||||
*/
|
||||
|
||||
#ifndef _BSP_TIMERCOUNTER_H
|
||||
@@ -60,9 +60,15 @@ typedef struct __attribute((__packed__)) {
|
||||
|
||||
//TIMERCOUNTER_PRESCALER
|
||||
inline uint32_t get_timercounter_prescaler(volatile timercounter_t* reg){
|
||||
return reg->PRESCALER;
|
||||
}
|
||||
inline void set_timercounter_prescaler(volatile timercounter_t* reg, uint32_t value){
|
||||
reg->PRESCALER = value;
|
||||
}
|
||||
inline uint32_t get_timercounter_prescaler_limit(volatile timercounter_t* reg){
|
||||
return (reg->PRESCALER >> 0) & 0xffff;
|
||||
}
|
||||
inline void set_timercounter_prescaler(volatile timercounter_t* reg, uint16_t value){
|
||||
inline void set_timercounter_prescaler_limit(volatile timercounter_t* reg, uint16_t value){
|
||||
reg->PRESCALER = (reg->PRESCALER & ~(0xffffU << 0)) | (value << 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user