Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
-mat- filid brandy
firmware
Commits
ccd2773c
Commit
ccd2773c
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(BHI): Stub HAL
parent
eb3fd699
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_support.h
+0
-1
0 additions, 1 deletion
...sch/BHy1_driver_and_MCU_solution/driver/inc/bhy_support.h
lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_support.c
+16
-9
16 additions, 9 deletions
...sch/BHy1_driver_and_MCU_solution/driver/src/bhy_support.c
with
16 additions
and
10 deletions
lib/bosch/BHy1_driver_and_MCU_solution/driver/inc/bhy_support.h
+
0
−
1
View file @
ccd2773c
...
...
@@ -56,7 +56,6 @@
/* HEADER FILES */
/********************************************************************************/
#include
"bhy.h"
#include
"twi.h"
/********************************************************************************/
/* MACROS */
...
...
This diff is collapsed.
Click to expand it.
lib/bosch/BHy1_driver_and_MCU_solution/driver/src/bhy_support.c
+
16
−
9
View file @
ccd2773c
...
...
@@ -56,21 +56,28 @@
#include
"bhy_support.h"
#include
"bhy_uc_driver_config.h"
#include
"FreeRTOS.h"
#include
"task.h"
#include
"i2c.h"
#include
"tmr_utils.h"
#include
<stdio.h>
/********************************************************************************/
/* STATIC VARIABLES */
/********************************************************************************/
static
struct
bhy_t
bhy
;
static
uint8_t
*
version
=
BHY_MCU_REFERENCE_VERSION
;
static
char
*
version
=
BHY_MCU_REFERENCE_VERSION
;
/********************************************************************************/
/* EXTERN FUNCTION DECLARATIONS */
/********************************************************************************/
extern
int8_t
sensor_i2c_write
(
uint8_t
addr
,
uint8_t
reg
,
uint8_t
*
p_buf
,
uint16_t
size
);
extern
int8_t
sensor_i2c_read
(
uint8_t
addr
,
uint8_t
reg
,
uint8_t
*
p_buf
,
uint16_t
size
);
extern
void
trace_log
(
const
char
*
fmt
,
...);
static
int8_t
sensor_i2c_write
(
uint8_t
addr
,
uint8_t
reg
,
uint8_t
*
p_buf
,
uint16_t
size
)
{
return
0
;
}
static
int8_t
sensor_i2c_read
(
uint8_t
addr
,
uint8_t
reg
,
uint8_t
*
p_buf
,
uint16_t
size
)
{
return
0
;
}
/********************************************************************************/
/* FUNCTION DECLARATIONS */
...
...
@@ -114,20 +121,20 @@ int8_t bhy_initialize_support(void)
*/
void
bhy_delay_msec
(
uint32_t
msec
)
{
vTask
Delay
(
msec
);
TMR_
Delay
(
MXC_TMR0
,
MSEC
(
msec
),
0
);
}
/*!
* @brief provides a print function to the bhy driver on DD2.0 platform
*/
void
bhy_printf
(
const
u8
*
string
)
{
trace_log
(
"%s"
,
string
);
printf
(
"%s"
,
string
);
}
/*!
* @brief provides the mcu reference code version
*/
uint8_t
*
bhy_get_version
(
void
)
{
return
(
version
)
;
return
(
uint8_t
*
)
version
;
}
/** @}*/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment