C/C++

Setting HS Timers

2 938
luckbox  
Edited by luckbox at Jul 31, 2016 23:13

Has anyone had luck setting hs timers on the BPi? I was able to set the low no problem.
  1. #define HST_REG_SIZE 0x84
  2.    
  3. int main()
  4. {
  5.     char buf2_[HST_REG_SIZE];
  6.     char* hst_map = buf2_;

  7.     uint32_t* addrHST = hst_map;

  8.     // offset of hs timer irq enable reg: 0x0
  9.     uint32_t hsTimerIrqOffset = 0x0;

  10.     volatile uint32_t* addrHSTimerIRQ = (uint32_t*)((uint32_t)addrHST | hsTimerIrqOffset);

  11.     // print address of hsttimer irq register.
  12.     printf("\nHSTimer IRQ address should be: %x\n", (uint32_t)addrHSTimerIRQ);

  13.     // print whats in that register.
  14.     printf("\nHSTimer IRQ at that address contains: %x\n", *addrHSTimerIRQ);

  15.     *addrHSTimerIRQ |= 0x1;
  16.     // print whats in that register.
  17.     printf("\nHSTimer IRQ at that address now contains: %x\n", *addrHSTimerIRQ);
  18. }
Copy the Code



Do I need to set something else first?
I have not set up, help me, happy wheels  game.

nike shoes
lebron soldier 10
yeezy boost
moncler outlet
yeezy boost 350 v2
links of london outlet store
pandora charms
adidas tubular
nike air force
goyard handbags
adidas nmd
john wall shoes
derrick rose shoes
air jordan 13
yeezy boost
timberland outlet
louboutin shoes uk
westbrook shoes
james harden shoes
lacoste online shop
michael kors handbags
adidas nmd
supreme hoodie
bape hoodie
off white clothing
curry shoes
true religion
jordan shoes
michael kors outlet store
adidas iniki
christian louboutin shoes
jordan retro
ferragamo belts
vans shoes
golden goose
yeezy boost
yeezy boost 350
nike roshe one
michael kors outlet
adidas superstar shoes
nike air huarache
nike mercurial
yeezy boost
nike max
chrome hearts online
vapor max
authentic jordans
kd shoes
patriots jersey
led shoes for kids
air max 2018
yeezy boost 350 v2
michael kors handbags
kobe byrant shoes
cheap mlb jerseys
michael kors outlet
moncler jacket
red bottom shoes
air max
kevin durant shoes
cheap nba jerseys
adidas superstars
converse shoes
harden shoes
stephen curry shoes
adidas eqt
yeezy boost 350 v2
kate spade handbags
gucci belts
hermes belt
light up shoes
moncler jackets
goyard bags
longchamp
adidas yeezy
Kanye West shoes
adidas tubular shadow
jordan retro 6
golden goose outlet
balenciaga shoes
nike air zoom
balenciaga sneakers
longchamp handbags
jordan 13
adidas ultra boost
adidas ultra boost
nike lebron soldier 11
adidas gazelle
curry 4
tory burch outlet
michael jordan shoes
nike dunks
kobe shoes
adidas superstar
adidas ultra boost uncaged
cheap jordans
nike free run
cheap jordans
kobe 11
calvin klein outlet online

You have to log in before you can reply Login | Sign Up

Points Rules