Skip to content

Commit

Permalink
Linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vicloginov committed Nov 7, 2023
1 parent 8a49e9c commit 9510492
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
20 changes: 13 additions & 7 deletions Examples/MAX78000/CNN/UNet-demo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,19 +510,23 @@ int main(void)
//MXC_TFT_ShowImage(1, 1, image_bitmap_2);
memset(buff, 32, TFT_BUFF_SIZE);

TFT_Print(buff, 55, 30, font_2, snprintf(buff, sizeof(buff), "ANALOG DEVICES "));
TFT_Print(buff, 55, 30, font_2,
snprintf(buff, sizeof(buff), "ANALOG DEVICES "));

TFT_Print(buff, 15, 50, font_2, snprintf(buff, sizeof(buff), "U-Net Segmentation Demo "));
TFT_Print(buff, 15, 50, font_2,
snprintf(buff, sizeof(buff), "U-Net Segmentation Demo "));

TFT_Print(buff, 120, 90, font_1, snprintf(buff, sizeof(buff), "Ver. 1.1.0 "));
TFT_Print(buff, 120, 90, font_1,
snprintf(buff, sizeof(buff), "Ver. 1.1.0 "));

TFT_Print(buff, 55, 130, font_1,
snprintf(buff, sizeof(buff), "Building(red), Sky(blue) "));

TFT_Print(buff, 5, 170, font_1,
snprintf(buff, sizeof(buff), "Foliage(green), Unknown(black) "));

TFT_Print(buff, 10, 210, font_2, snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO START "));
TFT_Print(buff, 10, 210, font_2,
snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO START "));
while (!PB_Get(0)) {}

// Enable peripheral, enable CNN interrupt, turn on CNN clock
Expand All @@ -537,7 +541,8 @@ int main(void)

MXC_TFT_ClearScreen();

TFT_Print(buff, 55, 40, font_1, snprintf(buff, sizeof(buff), "Waiting for SPI data ..."));
TFT_Print(buff, 55, 40, font_1,
snprintf(buff, sizeof(buff), "Waiting for SPI data ..."));
#endif
while (1) {
#if defined(USE_SPIDATA)
Expand All @@ -548,7 +553,8 @@ int main(void)

MXC_TFT_ClearScreen();

//TFT_Print(buff, 5, 45, font_1, snprintf(buff, sizeof(buff), " Image Mask Overlay"));
//TFT_Print(buff, 5, 45, font_1,
// snprintf(buff, sizeof(buff), " Image Mask Overlay"));

// Reload bias after wakeup
cnn_init(); // Bring state machine into consistent state
Expand Down Expand Up @@ -579,7 +585,7 @@ int main(void)
(float)cnn_time / 1000));

#if !defined(USE_SPIDATA)
TFT_Print(buff, 0, 212, font_1,
TFT_Print(buff, 0, 212, font_1,
snprintf(buff, sizeof(buff), "PRESS PB1(SW1) TO CONTINUE"));
while (!PB_Get(0)) {}
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
2 changes: 1 addition & 1 deletion Examples/MAX78002/CNN/kws20_demo/tft/LiberationSans28x28.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -784,4 +784,4 @@ const unsigned char Liberation_Sans28x28[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // Code for char 
};
};

0 comments on commit 9510492

Please sign in to comment.