@@ -25,121 +25,120 @@ extern "C" {
2525#endif
2626
2727static const mbed_error_status_t function_not_implemented = MBED_MAKE_ERROR(MBED_MODULE_BLE, ENOSYS);
28- #define NOT_IMPLEMENTED (name ) MBED_ERROR(function_not_implemented, " Provide implementation of " name" ." );
2928
3029/* UART */
3130
3231MBED_WEAK PalUartState_t PalUartGetState (PalUartId_t id)
3332{
34- NOT_IMPLEMENTED ( " PalUartGetState" );
33+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartGetState" );
3534 return PAL_UART_STATE_UNINIT;
3635}
3736
3837MBED_WEAK void PalUartInit (PalUartId_t id, const PalUartConfig_t *pCfg)
3938{
40- NOT_IMPLEMENTED ( " PalUartInit" );
39+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartInit" );
4140}
4241
4342MBED_WEAK void PalUartReadData (PalUartId_t id, uint8_t *pData, uint16_t len)
4443{
45- NOT_IMPLEMENTED ( " PalUartReadData" );
44+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartReadData" );
4645}
4746
4847MBED_WEAK void PalUartWriteData (PalUartId_t id, const uint8_t *pData, uint16_t len)
4948{
50- NOT_IMPLEMENTED ( " PalUartWriteData" );
49+ MBED_ERROR (function_not_implemented, " Provide implementation of PalUartWriteData" );
5150}
5251
5352/* NVM */
5453
5554MBED_WEAK void PalNvmInit (PalNvmCback_t actCback)
5655{
57- NOT_IMPLEMENTED ( " PalNvmInit" );
56+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmInit" );
5857}
5958
6059MBED_WEAK PalNvmState_t PalNvmGetState ()
6160{
62- NOT_IMPLEMENTED ( " PalNvmGetState" );
61+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmGetState" );
6362 return PAL_NVM_STATE_UNINIT;
6463}
6564
6665MBED_WEAK void PalNvmRead (MBED_WEAK void *pBuf, uint32_t size, uint32_t srcAddr)
6766{
68- NOT_IMPLEMENTED ( " PalNvmRead" );
67+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmRead" );
6968}
7069
7170MBED_WEAK void PalNvmWrite (MBED_WEAK void *pBuf, uint32_t size, uint32_t dstAddr)
7271{
73- NOT_IMPLEMENTED ( " PalNvmWrite" );
72+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmWrite" );
7473}
7574
7675MBED_WEAK void PalNvmEraseSector (uint32_t size, uint32_t startAddr)
7776{
78- NOT_IMPLEMENTED ( " PalNvmEraseSector" );
77+ MBED_ERROR (function_not_implemented, " Provide implementation of PalNvmEraseSector" );
7978}
8079
8180/* LED */
8281
8382MBED_WEAK void PalLedOn (uint8_t id)
8483{
85- NOT_IMPLEMENTED ( " PalLedOn" );
84+ MBED_ERROR (function_not_implemented, " Provide implementation of PalLedOn" );
8685}
8786
8887MBED_WEAK void PalLedOff (uint8_t id)
8988{
90- NOT_IMPLEMENTED ( " PalLedOff" );
89+ MBED_ERROR (function_not_implemented, " Provide implementation of PalLedOff" );
9190}
9291
9392/* RTC */
9493
9594MBED_WEAK void PalRtcInit ()
9695{
97- NOT_IMPLEMENTED ( " PalRtcInit" );
96+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcInit" );
9897}
9998
10099MBED_WEAK void PalRtcEnableCompareIrq ()
101100{
102- NOT_IMPLEMENTED ( " PalRtcEnableCompareIrq" );
101+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcEnableCompareIrq" );
103102}
104103
105104MBED_WEAK void PalRtcDisableCompareIrq ()
106105{
107- NOT_IMPLEMENTED ( " PalRtcDisableCompareIrq" );
106+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcDisableCompareIrq" );
108107}
109108
110109MBED_WEAK uint32_t PalRtcCounterGet ()
111110{
112- NOT_IMPLEMENTED ( " PalRtcDisableCompareIrq" );
111+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcDisableCompareIrq" );
113112 return 0 ;
114113}
115114
116115MBED_WEAK void PalRtcCompareSet (uint32_t value)
117116{
118- NOT_IMPLEMENTED ( " PalRtcCompareSet" );
117+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcCompareSet" );
119118}
120119
121120MBED_WEAK uint32_t PalRtcCompareGet ()
122121{
123- NOT_IMPLEMENTED ( " PalRtcCompareGet" );
122+ MBED_ERROR (function_not_implemented, " Provide implementation of PalRtcCompareGet" );
124123 return 0 ;
125124}
126125
127126/* SYS */
128127
129128MBED_WEAK bool_t PalSysIsBusy ()
130129{
131- NOT_IMPLEMENTED ( " PalSysIsBusy" );
130+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysIsBusy" );
132131 return 0 ;
133132}
134133
135134MBED_WEAK void PalSysAssertTrap ()
136135{
137- NOT_IMPLEMENTED ( " PalSysAssertTrap" );
136+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysAssertTrap" );
138137}
139138
140139MBED_WEAK void PalSysSleep ()
141140{
142- NOT_IMPLEMENTED ( " PalSysSleep" );
141+ MBED_ERROR (function_not_implemented, " Provide implementation of PalSysSleep" );
143142}
144143
145144#ifdef __cplusplus
0 commit comments