1 | //...
|
2 | #include "apbcore_beispiel_hw_platform.h"
|
3 | uint32_t* register_pointer=(uint32_t*)APB_REGISTER_0;
|
4 | int main()
|
5 | {
|
6 | user_uart_init(MSS_UART_57600_BAUD);
|
7 |
|
8 | register_pointer[0]=20;
|
9 | register_pointer[1]=88;
|
10 | register_pointer[2]=11;
|
11 | register_pointer[3]=15;
|
12 | //printU hast Du wahrscheinlich nicht.
|
13 | //APB_REGISTER_0 kommt von der Firmware-Erstellung->Uart_Senden
|
14 | printU("\n\r");
|
15 | printU("Register Inhalt 0: %d\n\r",register_pointer[0]);
|
16 | printU("Register Inhalt 1: %d\n\r",register_pointer[1]);
|
17 | printU("Register Inhalt 2: %d\n\r",register_pointer[2]);
|
18 | printU("Register Inhalt 3: %d\n\r",register_pointer[3]);
|
19 |
|
20 | printU("\n\r");
|
21 | return 0;
|
22 | }
|