fix board message
This commit is contained in:
parent
664a058884
commit
43b57ea41a
|
@ -6,6 +6,9 @@
|
||||||
|
|
||||||
#define CAT2(x, y, z) x##y##z
|
#define CAT2(x, y, z) x##y##z
|
||||||
|
|
||||||
|
#define STR(x) #x
|
||||||
|
#define STR2(x) STR(x)
|
||||||
|
|
||||||
#define bit(bit) (1 << bit)
|
#define bit(bit) (1 << bit)
|
||||||
#define bit_is_set(val, bit) (((val & (1 << bit)) >> bit) == 1)
|
#define bit_is_set(val, bit) (((val & (1 << bit)) >> bit) == 1)
|
||||||
#define clear_bit(val, bit) (val = (val & ~(1 << bit)))
|
#define clear_bit(val, bit) (val = (val & ~(1 << bit)))
|
||||||
|
|
|
@ -24,7 +24,7 @@ void uart1_init(uint16_t inc, uint16_t mod) {
|
||||||
|
|
||||||
void print_welcome(char* testname) {
|
void print_welcome(char* testname) {
|
||||||
printf("mc1322x-test: %s\n\r",testname);
|
printf("mc1322x-test: %s\n\r",testname);
|
||||||
printf("board: %s\n\r", "fix print welcom");
|
printf("board: %s\n\r", STR2(BOARD));
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_regs(uint32_t base, uint32_t len) {
|
void dump_regs(uint32_t base, uint32_t len) {
|
||||||
|
|
Loading…
Reference in a new issue