Skip to content

Commit 2940657

Browse files
committed
modify astyle
1 parent 0fef805 commit 2940657

File tree

3 files changed

+270
-226
lines changed

3 files changed

+270
-226
lines changed

storage/blockdevice/COMPONENT_SPINAND/include/SPINAND/SPINANDBlockDevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ class SPINANDBlockDevice : public mbed::BlockDevice {
288288
bool _is_mem_ready();
289289
void _bch_init(uint8_t ecc_bits);
290290
void _bch_free();
291-
int _bch_calculate_ecc(unsigned char* buf, unsigned char* code);
292-
int _bch_correct_data(unsigned char* buf, unsigned char* read_ecc, unsigned char* calc_ecc);
291+
int _bch_calculate_ecc(unsigned char *buf, unsigned char *code);
292+
int _bch_correct_data(unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc);
293293
private:
294294

295295
// QSPI Driver Object

storage/blockdevice/COMPONENT_SPINAND/include/SPINAND/bch.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#ifndef _BCH_H
2727
#define _BCH_H
2828
#ifdef __cplusplus
29-
extern "C" {
29+
extern "C" {
3030
#endif
3131
#include <stdint.h>
3232
//typedef unsigned char uint8_t;
@@ -59,7 +59,7 @@ struct bch_control {
5959
unsigned int t;
6060
unsigned int ecc_bits;
6161
unsigned int ecc_bytes;
62-
/* private: */
62+
/* private: */
6363
uint16_t *a_pow_tab;
6464
uint16_t *a_log_tab;
6565
uint32_t *mod8_tab;
@@ -77,11 +77,11 @@ struct bch_control *init_bch(int m, int t, unsigned int prim_poly);
7777
void free_bch(struct bch_control *bch);
7878

7979
void encode_bch(struct bch_control *bch, const uint8_t *data,
80-
unsigned int len, uint8_t *ecc);
80+
unsigned int len, uint8_t *ecc);
8181

8282
int decode_bch(struct bch_control *bch, const uint8_t *data, unsigned int len,
83-
const uint8_t *recv_ecc, const uint8_t *calc_ecc,
84-
const unsigned int *syn, unsigned int *errloc);
83+
const uint8_t *recv_ecc, const uint8_t *calc_ecc,
84+
const unsigned int *syn, unsigned int *errloc);
8585
int fls(int x);
8686
#ifdef _X86_
8787
#define cpu_to_be32(x) ((((x)&0xff)<<24) | (((x)&0xff00)<<8) | (((x)>>8)&0xff00) | (((x)>>24)&0xff))

0 commit comments

Comments
 (0)