mirror of
https://github.com/lupyuen/pinephone-nuttx.git
synced 2025-01-12 20:58:34 +08:00
Move test code
This commit is contained in:
parent
0ef0919c25
commit
febe888ec0
1 changed files with 11 additions and 0 deletions
11
test/test_pinephone_lcd.c
Normal file
11
test/test_pinephone_lcd.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Test Code for PinePhone LCD Panel
|
||||
// Add `#include "../../pinephone-nuttx/test/test_pinephone_lcd.c"` to the end of pinephone_lcd_backlight_enable(), before `return OK` in this file:
|
||||
// https://github.com/apache/nuttx/blob/master/boards/arm64/a64/pinephone/src/pinephone_lcd.c
|
||||
|
||||
{
|
||||
DEBUGASSERT(percent == 90);
|
||||
DEBUGASSERT(R_PWM_CTRL_REG == 0x1f03800);
|
||||
DEBUGASSERT(R_PWM_CH0_PERIOD == 0x1f03804);
|
||||
DEBUGASSERT(period == 0x4af0437);
|
||||
DEBUGASSERT(ctrl == 0x5f);
|
||||
}
|
Loading…
Reference in a new issue