Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (2)
At24cxx code
no vote
At24cxx source code, passed the test OK. /** Global includes */#include #include //#include //#include /** Other includes */#include #include /** Local includes */#include #include #include #include #include #include #include #include #include #define copy_ from_ user(to,from,n) (memcpy(to, from, n)?0:1)#define copy_ to_ user(to,from,n) (memcpy(to, from, n)?0:1)#define AT24XX_ PARA_ CO 2struct s_ at24c card_ at24cxx_ status = {.card_ addr   = 0x50,.card_ type   = AT24C02,.addr_ len    = 1,.pg_ size     =
温馨刘
2017-12-06
0
1
SLE4442 card code
no vote
SLE4442 card & nbsp; C language source code, after debugging OK. init_ sle4442(void){params_ sync.power = N_ MML_ SC_ POWER_ 5V;params_ sync.protocol = HAL_ SCS_ PROTOCOL_ SYNC;result = mml_ sc_ sync_ init(¶ms_ sync);}void mml_ sc_ sle44x2_ set_ power(t_ mml_ sc_ config * params){dev->reg_ sc->sc_ pnr &=~ (0x03 << MML_ SC_ PNR_ VCCSEL_ OFST);switch (params->power){case MML_ SCSTATUS_ POWER_ 5V:dev->reg_ sc->sc_ pnr |=  0x2 << MML_ SC_ PNR_ VCCSEL_ OFST;break;case MML_ SCSTATUS_ POWER_ 3V:dev->reg_ sc->sc_ pnr |=  0x1 << MML_ SC_ PNR_ VCCSEL_ OFST;break;case MML_ SCSTATUS_ POWER_ 1_ 8V:break; default:dev->reg_ sc->sc_ pnr |=  0x1 << MML_ SC_ PNR_ VCCSEL_ OFST;break;}}/******************************************************************************//**
温馨刘
2017-12-06
0
1
No more~