mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
kx122: Allow faster SPI bus frequency
The hardcoded frequency of 10kHz was much slower than the capacity of the device Signed-off-by: Antoine W. Campagna <AntoineW@Campagna.org> Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
83f541a5db
commit
54c6d294af
@ -43,7 +43,7 @@ int main(int argc, char **argv)
|
||||
signal(SIGINT,sig_handler);
|
||||
|
||||
//! [Interesting]
|
||||
kx122_context sensor = kx122_init(0,-1,24);
|
||||
kx122_context sensor = kx122_init(0, -1, 24, 10000);
|
||||
if (!sensor)
|
||||
{
|
||||
printf("kx122_init() failed.\n");
|
||||
|
Reference in New Issue
Block a user