NAMote72 Utility Application – Serial Terminal Monitor control for NAMote72 (note: this application replaces the previous na_mote1 test code application)
Dependencies: SX127x lib_gps lib_mma8451q lib_mpl3115a2 lib_sx9500 mbed
Fork of na_mote1 by
See wiki Page for a detailed
This is a link to the wiki page
Diff: main.cpp
- Revision:
- 11:0f62a500aedc
- Parent:
- 10:a3e2c558c003
- Child:
- 12:6afe8fed5385
diff -r a3e2c558c003 -r 0f62a500aedc main.cpp --- a/main.cpp Thu Jun 25 22:29:28 2015 +0000 +++ b/main.cpp Tue Jun 30 00:35:40 2015 +0000 @@ -2380,6 +2380,17 @@ mma8451q.set_active(0); mpl3115a2.SetModeStandby(); + + GPIOA->MODER |= 0x01415500; // unused pins as outputs: PA4, PA5, PA6, PA7, PA8, (PA11,PA12 USB) + printf("GPIOA->MODER:%08x\r\n", GPIOA->MODER); + + GPIOB->MODER |= 0x00000401; // unused pins as outputs: PB0(HDR_DIO1), PB5 (PB10 pulled hi by LED), PB3-T_SWO + printf("GPIOB->MODER:%08x\r\n", GPIOB->MODER); + + GPIOC->MODER |= 0x00000041; // unused pins as outputs: PC0(HDR_FEM_CSD), PC3(SPI3_enable) + printf("GPIOC->MODER:%08x\r\n", GPIOC->MODER); + + while(1) { switch (app) {